Difference between revisions of "Spunicols.m"
(sync with Spinach main f053e432: new page for spunicols.m created from the source header and implementation) |
(Update links for maintainer-requested unihash to hash_unique rename) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 18: | Line 18: | ||
==See also== | ==See also== | ||
| − | [[spsortrows.m]], [[ | + | [[spsortrows.m]], [[hash_unique.m]], [[compile_mex.m]], [[Kernel utilities]] |
| − | ''Version 2. | + | ''Version 2.13, authors: [[Ilya Kuprov]]'' |
Latest revision as of 16:20, 11 October 2026
Sparse matrix unique-column utility. The Matlab implementation transposes the input, applies unique(...,'rows'), and transposes the result back, so that the output holds the unique columns of the input matrix in sorted 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
A=spunicols(A)
Parameters
A - sparse real double matrix
Outputs
A - sparse real double matrix containing
unique columns of the input matrix
See also
spsortrows.m, hash_unique.m, compile_mex.m, Kernel utilities
Version 2.13, authors: Ilya Kuprov