2022 Developer Survey is open! Take survey.
2 votes
Accepted

When should I write a matrix-vector function to handle the sparse matrix vector multiplication?

Multiplying matrix and a vector using sparse matrix format, such as CSR is not hard, and is a basic and common operation if you write a linear solvers library for sparse linear systems. Take SPARSEKIT ...
user avatar
2 votes
Accepted

Sparsity-Promoting Convex Optimization Over Simplex

Very interesting question. One option is to relax the cardinality regularizer to the reciprocal of an infinity norm, i.e., replace $\mathrm{card}(x)$ with $$1 / \|x\|_{\infty}.$$ This yields a non-...
user avatar
1 vote

When should I write a matrix-vector function to handle the sparse matrix vector multiplication?

Thanks for all your reply, I have done some experiments in matlab and confirmed that matlab indeed uses the sparse matrix-vector multiplication automatically optimally. For example, ...
user avatar
  • 951

Only top scored, non community-wiki answers of a minimum length are eligible