Difference between revisions of "Clean up.m"
(Normalise sequential blank lines) |
|||
| Line 18: | Line 18: | ||
==See also== | ==See also== | ||
[[tolerances.m]], [[mprealloc.m]] | [[tolerances.m]], [[mprealloc.m]] | ||
| − | |||
''Version 2.3, authors: [[Ilya Kuprov]], [[Alex Nevzorov]]'' | ''Version 2.3, authors: [[Ilya Kuprov]], [[Alex Nevzorov]]'' | ||
Revision as of 12:23, 25 April 2026
Array clean-up utility. Drops non-zero elements with magnitude below the user-specified tolerance and converts between sparse and full storage de pending on the density of non-zeroes in the array.
Syntax
A=clean_up(spin_system,A,nonzero_tol)
Arguments
A - a numerical array or a cell array thereof
nonzero_tol - nonzero tolerance
Outputs
A - cleaned-up array
See also
Version 2.3, authors: Ilya Kuprov, Alex Nevzorov