Sparse Matrix Multiplication

Allows you to specify the maximum number of nonzeros before multiplying sparse matrices.

You are now following this Submission

Matlab's built in sparse matrix multiplication function causes out of memory exceptions when it shouldn't. This file saves the day! Compile it with "mex mex_amub.cpp".

Cite As

Christian Walder (2026). Sparse Matrix Multiplication (https://www.mathworks.com/matlabcentral/fileexchange/7466-sparse-matrix-multiplication), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Sparse Matrices in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

dynamic memory if nargin < 3