Difference between revisions of "Spsortrows.m"
(sync with Spinach main f053e432: new page for spsortrows.m created from the source header and implementation) |
(version fragment to 2.13 per IK 2026-08-30) |
||
| Line 20: | Line 20: | ||
[[spunicols.m]], [[unihash.m]], [[compile_mex.m]], [[Kernel utilities]] | [[spunicols.m]], [[unihash.m]], [[compile_mex.m]], [[Kernel utilities]] | ||
| − | ''Version 2. | + | ''Version 2.13, authors: [[Ilya Kuprov]]'' |
Latest revision as of 10:13, 30 August 2026
Sparse matrix row-sorting permutation utility. The Matlab implementation calls sortrows() on the input matrix and returns its second output, that is, the permutation that brings the rows of the matrix into lexicographic order.
This file is a Matlab fallback for the compiled MEX function of the same name; when the MEX binary for the current platform is present on the path, it takes precedence and this file is not executed. The input must be a sparse real double matrix.
Syntax
idx=spsortrows(A)
Parameters
A - sparse real double matrix
Outputs
idx - row permutation index, matching the second
output of Matlab's sortrows(A)
See also
spunicols.m, unihash.m, compile_mex.m, Kernel utilities
Version 2.13, authors: Ilya Kuprov