Sparse matrix multiplication

Version 1.1.0.0 (1.86 KB) by Roby
Memory-efficient multiplication of very large, sparse matrixes.
694 Downloads
Updated 9 Dec 2009

View License

Multiplication between large, sparse matrixes can result in out-of-memory errors. This simple function decomposes the problem of multiplying two very large, sparse matrixes. Regardless the function works with both sparse and dense matrixes, its utility is evident only in the case of sparse matrixes.

Cite As

Roby (2026). Sparse matrix multiplication (https://www.mathworks.com/matlabcentral/fileexchange/26023-sparse-matrix-multiplication), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Sparse Matrices in Help Center and MATLAB Answers
Version Published Release Notes
1.1.0.0

Much more efficient implementation.
Fixed a problem with sparse matrices that affected computing time during assignment.

1.0.0.0