Difference between revisions of "Ttclass/numel.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Sync syntax/arguments/outputs with current Spinach source)
(Update function See also links and function index membership)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{DISPLAYTITLE:ttclass/numel.m}} __NOTOC__
 
{{DISPLAYTITLE:ttclass/numel.m}} __NOTOC__
−
 
+
Number of elements in the matrix represented by a tensor
−
Number of elements in the matrix represented by a tensor train.
+
train.
  
 
==Syntax==
 
==Syntax==
  
−
n=numel(tt)
+
    n=numel(tt)
−
 
 
−
==Arguments==
 
−
 
 
−
tt  - tensor train object
 
−
 
 
−
Ouputs:
 
−
 
 
−
    n  - an integer
 
  
−
Note: for large spin systems, the result may be too large
+
==Parameters==
−
      to fit into the 64-bit integer.
 
  
−
d.savostyanov@soton.ac.uk
+
    tt - tensor train object
−
ilya.kuprov@weizmann.ac.il
 
  
 
==Outputs==
 
==Outputs==
  
−
n - an integer
+
    n - an integer
  
 
==Notes==
 
==Notes==
−
 
+
for large spin systems, the result may be too large
−
For large spin systems, the result may be too large to fit into the 64-bit integer.
+
      to fit into the 64-bit integer.
  
 
==See also==
 
==See also==
−
 
+
[[ttclass.m]], [[ttclass/nnz.m]], [[ttclass/amensolve.m]], [[ttclass/amensum.m]], [[ttclass/clearcoeff.m]], [[ttclass/conj.m]], [[ttclass/ctranspose.m]], [[ttclass/diag.m]], [[ttclass/dot.m]], [[ttclass/full.m]], [[ttclass/hdot.m]], [[ttclass/ismatrix.m]], [[ttclass/isnumeric.m]], [[ttclass/isreal.m]], [[ttclass/kron.m]], [[ttclass/mean.m]], [[ttclass/minus.m]], [[ttclass/mldivide.m]], [[ttclass/mrdivide.m]], [[ttclass/mtimes.m]], [[ttclass/norm.m]], [[ttclass/pack.m]], [[ttclass/plus.m]], [[ttclass/rand.m]], [[ttclass/ranks.m]], [[ttclass/rdivide.m]], [[ttclass/revert.m]], [[ttclass/shrink.m]], [[ttclass/size.m]], [[ttclass/sizes.m]], [[ttclass/subsref.m]], [[ttclass/sum.m]], [[ttclass/trace.m]], [[ttclass/transpose.m]], [[ttclass/truncate.m]], [[ttclass/ttort.m]], [[ttclass/unit_like.m]], [[ttclass/vec.m]], [[Tensor_train_module]]
−
[[ttclass.m]], [[ttclass/nnz.m]]
 
−
 
 
  
 
''Version 2.1, authors: [[Ilya Kuprov]], [[Dmitry Savostyanov]]''
 
''Version 2.1, authors: [[Ilya Kuprov]], [[Dmitry Savostyanov]]''

Latest revision as of 18:42, 6 June 2026