Clean up.m

From Spinach Documentation Wiki
Revision as of 17:53, 8 December 2015 by Admin (talk | contribs) (Created page with "Array clean-up utility. Drops non-zero elements with magnitude below the user-specified tolerance and converts between sparse and dense represen- tations depending on the dens...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Array clean-up utility. Drops non-zero elements with magnitude below the user-specified tolerance and converts between sparse and dense represen- tations depending on the density of non-zeros in the array. Syntax:

                  A=clean_up(spin_system,A,nonzero_tol)