Difference between revisions of "Ttclass/numel.m"

From Spinach Documentation Wiki
Jump to: navigation, search
m (Repair ttclass function page template)
m (Rename Arguments section heading to Parameters)
Line 7: Line 7:
 
     n=numel(tt)
 
     n=numel(tt)
  
−
==Arguments==
+
==Parameters==
  
 
     tt - tensor train object
 
     tt - tensor train object

Revision as of 17:53, 5 June 2026

Number of elements in the matrix represented by a tensor train.

Syntax

    n=numel(tt)

Parameters

    tt - tensor train object

Outputs

    n - an integer

Notes

for large spin systems, the result may be too large

     to fit into the 64-bit integer.

See also

ttclass.m, ttclass/nnz.m

Version 2.1, authors: Ilya Kuprov, Dmitry Savostyanov