Difference between revisions of "Ttclass/ranks.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Normalise remaining wiki page to current Spinach source header)
(Restore pre-bulk-edit wiki content)
Line 1: Line 1:
−
{{DISPLAYTITLE:ttclass/ranks.m}} __NOTOC__
+
Returns the bond dimensions of a tensor train. Syntax:
  
−
Returns the bond dimensions of a tensor train.
 
  
−
==Syntax==
 
  
−
ttranks=ranks(ttrain)
+
    ttranks=ranks(ttrain)
 +
 
 +
The output is (ncores+1) by (ntrains) array. The first
 +
and the last elements for each train are 1.

Revision as of 15:50, 5 April 2026

Returns the bond dimensions of a tensor train. Syntax:


    ttranks=ranks(ttrain)

The output is (ncores+1) by (ntrains) array. The first and the last elements for each train are 1.