Difference between revisions of "Ttclass/numel.m"
(Created page with "{{DISPLAYTITLE:ttclass/numel.m}} Number of elements in the matrix represented by a tensor train. ==Syntax== n=numel(tt) ==Arguments== tt - tensor train object...") |
(Sync syntax/arguments/outputs with current Spinach source) |
||
| Line 1: | Line 1: | ||
| − | {{DISPLAYTITLE:ttclass/numel.m}} | + | {{DISPLAYTITLE:ttclass/numel.m}} __NOTOC__ |
| + | |||
Number of elements in the matrix represented by a tensor train. | Number of elements in the matrix represented by a tensor train. | ||
==Syntax== | ==Syntax== | ||
| − | + | n=numel(tt) | |
==Arguments== | ==Arguments== | ||
| − | + | tt - tensor train object | |
| + | |||
| + | Ouputs: | ||
| + | |||
| + | n - an integer | ||
| + | |||
| + | Note: for large spin systems, the result may be too large | ||
| + | to fit into the 64-bit integer. | ||
| + | |||
| + | d.savostyanov@soton.ac.uk | ||
| + | ilya.kuprov@weizmann.ac.il | ||
==Outputs== | ==Outputs== | ||
| − | + | n - an integer | |
==Notes== | ==Notes== | ||
| + | |||
For large spin systems, the result may be too large to fit into the 64-bit integer. | For large spin systems, the result may be too large to fit into the 64-bit integer. | ||
==See also== | ==See also== | ||
| + | |||
[[ttclass.m]], [[ttclass/nnz.m]] | [[ttclass.m]], [[ttclass/nnz.m]] | ||
''Version 2.1, authors: [[Ilya Kuprov]], [[Dmitry Savostyanov]]'' | ''Version 2.1, authors: [[Ilya Kuprov]], [[Dmitry Savostyanov]]'' | ||
Revision as of 14:06, 5 April 2026
Number of elements in the matrix represented by a tensor train.
Syntax
n=numel(tt)
Arguments
tt - tensor train object
Ouputs:
n - an integer
Note: for large spin systems, the result may be too large
to fit into the 64-bit integer.
d.savostyanov@soton.ac.uk ilya.kuprov@weizmann.ac.il
Outputs
n - an integer
Notes
For large spin systems, the result may be too large to fit into the 64-bit integer.
See also
Version 2.1, authors: Ilya Kuprov, Dmitry Savostyanov