Difference between revisions of "Ttclass/ranks.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Sync syntax/arguments/outputs with current Spinach source)
(Normalise remaining wiki page to current Spinach source header)
Line 1: Line 1:
−
Returns the bond dimensions of a tensor train. Syntax:
+
{{DISPLAYTITLE:ttclass/ranks.m}} __NOTOC__
  
 +
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:13, 5 April 2026


Returns the bond dimensions of a tensor train.

Syntax

ttranks=ranks(ttrain)