Difference between revisions of "Ttclass/rand.m"
(Sync syntax/arguments/outputs with current Spinach source) |
(Sync syntax/arguments/outputs with current Spinach source) |
||
| Line 1: | Line 1: | ||
| + | {{DISPLAYTITLE:ttclass/rand.m}} __NOTOC__ | ||
| + | |||
Generates tensor train matrix with random entries, same physical index | Generates tensor train matrix with random entries, same physical index | ||
topology at the tensor train supplied, and specified TT-ranks. Syntax: | topology at the tensor train supplied, and specified TT-ranks. Syntax: | ||
| Line 4: | Line 6: | ||
tt=rand(tt,ttrank) | tt=rand(tt,ttrank) | ||
| + | |||
| + | ==Arguments== | ||
| + | |||
| + | tt - a tensor train object | ||
| + | |||
| + | ttrank - bond rank, a positive integer | ||
| + | |||
| + | ==Outputs== | ||
| + | |||
| + | tt - a tensor train object | ||
| + | |||
| + | d.savostyanov@soton.ac.uk | ||
| + | ilya.kuprov@weizmann.ac.il | ||
Revision as of 15:12, 5 April 2026
Generates tensor train matrix with random entries, same physical index
topology at the tensor train supplied, and specified TT-ranks. Syntax:
tt=rand(tt,ttrank)
Arguments
tt - a tensor train object
ttrank - bond rank, a positive integer
Outputs
tt - a tensor train object
d.savostyanov@soton.ac.uk ilya.kuprov@weizmann.ac.il