ttclass/ranks.m

From Spinach Documentation Wiki
Revision as of 18:04, 5 June 2026 by Kuprov (talk | contribs) (Repair ttclass function page template)
Jump to: navigation, search

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