SPINIT

Version 1.3.0.0 (3.69 KB) by Roman
Sparse matrix initialization and update utility.
287 Downloads
Updated 17 Mar 2011

View License

This utility can be useful when you need to update a sparse matrix values
without changing its sparsity pattern.

Since MATLAB uses CSC (Compressed Sparse Column) format for sparse matries, the non-zeroes are stored in an array, which can be safely overwritten in order to update the matrix, while preserving the sparsity pattern.

This can be done much faster than re-allocating the whole sparse matrix again, when only its values change.

The source code can be found at GitHub:
https://github.com/romanz/thesis/tree/master/utils/spinit

Cite As

Roman (2024). SPINIT (https://www.mathworks.com/matlabcentral/fileexchange/30293-spinit), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Sparse Matrices in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.3.0.0

Fix tags

1.2.0.0

Update GitHub URL.

1.1.0.0

Update MATLAB version.

1.0.0.0