mprealloc.m

From Spinach Documentation Wiki
Revision as of 11:27, 25 April 2026 by Kuprov (talk | contribs) (Normalise sequential blank lines)
Jump to: navigation, search

Preallocates an operator in the current basis.

Syntax

    A=mprealloc(spin_system,nnzpc)

Arguments

    nnzpc  -  expected number of non-zeros per column

Outputs

    A      -  all-zero sparse matrix of the appropriate
              dimension with room for the specified num-
              ber of non-zeroes

See also

unit_oper.m, unit_state.m, carrier.m, operator.m, state.m

Version 2.3, authors: Ilya Kuprov