Difference between revisions of "Mprealloc.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Created page with "Preallocates an operator in the current basis. Syntax: A=mprealloc(spin_system,nnzpc) Parameters: nnzpc - expected number of non-zeros per column")
 
Line 1: Line 1:
−
Preallocates an operator in the current basis. Syntax:
+
{{DISPLAYTITLE:function.m}} __NOTOC__
 +
Preallocates an operator in the current basis.
  
−
            A=mprealloc(spin_system,nnzpc)
+
==Syntax==
  
−
Parameters:
+
    A=mprealloc(spin_system,nnzpc)
  
−
    nnzpc  -  expected number of non-zeros per column
+
==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]]''

Revision as of 14:27, 29 December 2018

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