Difference between revisions of "Ttclass/ranks.m"

From Spinach Documentation Wiki
Jump to: navigation, search
m (Add missing Version/authors metadata and remove raw author emails)
m (Repair ttclass function page template)
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
+
==Arguments==
−
and the last elements for each train are 1.
+
 
 +
    ttrain - a tensor train object
 +
 
 +
==Outputs==
 +
 
 +
    ttranks - (ncores+1) by (ntrains) array; the
 +
              first and the last elements for each
 +
              train are 1
  
 
==See also==
 
==See also==

Revision as of 18:04, 5 June 2026

Returns the bond dimensions of a tensor train.

Syntax

    ttranks=ranks(ttrain)

Arguments

    ttrain - a tensor train object

Outputs

    ttranks - (ncores+1) by (ntrains) array; the
              first and the last elements for each
              train are 1

See also

ttclass.m, ttclass/sizes.m, ttclass/shrink.m, Tensor train functions

Version 2.1, authors: Dmitry Savostyanov, Ilya Kuprov