ttclass/rand.m

From Spinach Documentation Wiki
Revision as of 18:53, 5 June 2026 by Kuprov (talk | contribs) (Rename Arguments section heading to Parameters)
Jump to: navigation, search

Generates a tensor train representation of a matrix with random tensor train cores, same physical index topology as the tensor train supplied, and user-specified bond ranks.

Syntax

    tt=rand(tt,ttrank)

Parameters

    tt     - a tensor train object

    ttrank - bond rank, a positive integer

Outputs

    tt - a tensor train object

See also

ttclass.m, ttclass/unit_like.m, ttclass/size.m, Tensor train functions

Version 2.1, authors: Dmitry Savostyanov, Ilya Kuprov