CSR sparse matrix

版本 1.0.0 (3.9 KB) 作者: Christoph Lohmann
Work with sparse matrices using CSR matrix format to significantly improve performance of matrix-vector multiplications.
6.0 次下载
更新时间 2025/6/18

查看许可证

Sparse matrix class emulating the CSR matrix format by internaly storing A.'.
This class can singificantly improve the performance of your application when the code is dominated by matrix-vector multiplcations.
Usage: Create a sparseCSR matrix using the syntax
A = sparseCSR();
A = sparseCSR(B);
A = sparseCSR(N, M);
A = sparseCSR(I, J, V);
A = sparseCSR(I, J, V, N, M);
where B can be either a full or a sparse matrix, N, M are the number of rows and columns, and I, J, and V are the row, column, and value vectors of A.
Convert a sparseCSR matrix using sparse(A) or full(A) into a sparse or dense matrix.
Several functions are overloaded aiming to naively use a sparseCSR matrix instead of a sparse matrix.

引用格式

Christoph Lohmann (2025). CSR sparse matrix (https://ww2.mathworks.cn/matlabcentral/fileexchange/181316-csr-sparse-matrix), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2025a
兼容任何版本
平台兼容性
Windows macOS Linux
标签 添加标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0