Difference between revisions of "Mprealloc.m"
(Normalise sequential blank lines) |
m (Rename Arguments section heading to Parameters) |
||
| Line 6: | Line 6: | ||
A=mprealloc(spin_system,nnzpc) | A=mprealloc(spin_system,nnzpc) | ||
| − | == | + | ==Parameters== |
nnzpc - expected number of non-zeros per column | nnzpc - expected number of non-zeros per column | ||
Revision as of 17:50, 5 June 2026
Preallocates an operator in the current basis.
Syntax
A=mprealloc(spin_system,nnzpc)
Parameters
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