Sparse sub access

This package allows to retrieve and assign values of sparse matrix in one shot.

Download
Download

You are now following this Submission

Cite As

Bruno Luong (2026). Sparse sub access (https://www.mathworks.com/matlabcentral/fileexchange/23488-sparse-sub-access), 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.11.0

When passing scalar row or column, it will automatically expanded to match the other

Download
1.9.0

switch the sort-engine of setsparse to introsort which is more stable than quicksort (previously used) in term of complexity

Download
1.8.0

Workaround for BUG of LCC (related to "|" operator in expression with int64)

Download
1.7.0

Correct bug when calling setspvalmex.c with empty indice.
This code is also ready to compiled using INTROSORT, however QUICKSORT is still retained as default engine.

Download
1.6.0

Correct a bug in setspvalmex.c, which concerns 64-bit only

Download
1.5.0

A new mex sparse assign engine is developped from scratch using quicksort. Finally, we beat adding routine by about 40% of speed. More comprehensive calibration routine is included.

Download
1.4.0

More comprehensive calibration
Correct mex-build command for 64-bit platform
Many small improvements and bug fixes

Download
1.3.0

A brand new mex implementation that overcome Matlab indexing Bug (32 bit platform) and improve the speed by approximately a factor of 4.

Download
1.2.0

Adjust the maximum of linear index allowed according to bug information communicated by The Mathworks (applicable only for 32-bit platform, v.2009A or previous)

Download
1.1.0

Add a feature of bi-variate function-handle when assign values

Download
1.0.0

Download