Difference between revisions of "Ttclass/rand.m"

From Spinach Documentation Wiki
Jump to: navigation, search
m (Repair ttclass function page template)
m (Rename Arguments section heading to Parameters)
Line 8: Line 8:
 
     tt=rand(tt,ttrank)
 
     tt=rand(tt,ttrank)
  
−
==Arguments==
+
==Parameters==
  
 
     tt    - a tensor train object
 
     tt    - a tensor train object

Revision as of 18:53, 5 June 2026

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