N-dimensional sparse arrays
Cite As
Matt J (2025). N-dimensional sparse arrays (https://www.mathworks.com/matlabcentral/fileexchange/29832-n-dimensional-sparse-arrays), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Mathematics > Sparse Matrices >
Tags
Acknowledgements
Inspired by: sub2allind
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.20.1 | Fixed a bug (reported by users) introduced by a change in ind2sub() conventions in R2024b. |
||
1.20.0 | Added support for implicit expansion, e.g., one can now do things like
|
||
1.19.0.1 | updated release compatibility info |
||
1.19.0.0 | Indexing bug fix. Affected scalar, linear indexing (see update notes). |
||
1.18.0.0 | Indexing bug fixes. |
||
1.16.0.0 | Improvements to MIN/MAX when dealing with singleton dimensions. Improved memory efficiency in CAT and null assignment. |
||
1.15.0.0 | Fixed bug involving ndSparse arrays with singleton dimensions. It affected MIN, MAX, SUBSASGN, and CAT. |
||
1.14.0.0 | Speed up indexing operations of the form A(:,:,...,:,i) |
||
1.13.0.0 | Fixed the output of ndSparse.build and CONVN, which sometimes had very large nzmax. |
||
1.12.0.0 | Improved the DISPLAY method, so that now only A(:,:,i,j,k,...) with non-zero data will be displayed. |
||
1.8.0.0 | *Forgot to add installation instructions in my submission earlier this week
|
||
1.7.0.0 | *Some bug fixes, including Ohad's issue of assigning a matrix into an array. *Improved memory efficiency of various operations, but with trade-offs. See UpdateNotes |
||
1.6.0.0 | Fixed a bug in SUBSASGN operations that expand the size of the matrix,
|
||
1.5.0.0 | Pervasive changes, some new methods, and some bug fixes. See UpdateNotes in .zip for full details. Among other things, ndSparse objects should typically consume a lot less memory now. |
||
1.4.0.0 | Fixed a bug in the constructor, which could cause ndSparse object to have incorrect dimensions. |
||
1.3.0.0 | See UpdateNotes in the .zip for full details. Highlights: 1. Lots of new methods!! BSXFUN, REPMAT, CIRCSHIFT,CONVN,...
|
||
1.2.0.0 | See UpdateNotes in the .zip for full details. Highlights: 1. Lots of new methods!! For example BSXFUN, REPMAT, CIRCSHIFT,CONVN. 2. Improved the efficiency of PERMUTE 3. Some small backward-compatibility issues. |
||
1.1.0.0 | *Some improvements to CAT and SUM, including minor bug fixes.
|
||
1.0.0.0 |