Difference between revisions of "Clean up.m"
(Normalise sequential blank lines) |
m (Rename Arguments section heading to Parameters) |
||
| Line 6: | Line 6: | ||
A=clean_up(spin_system,A,nonzero_tol) | A=clean_up(spin_system,A,nonzero_tol) | ||
| − | == | + | ==Parameters== |
A - a numerical array or a cell array thereof | A - a numerical array or a cell array thereof | ||
Revision as of 18:47, 5 June 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)
Parameters
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