Difference between revisions of "Ttclass/mean.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Add See also section to function-description page)
(Normalise sequential blank lines)
Line 1: Line 1:
 
Mean of elements of a tensor train representation of a
 
Mean of elements of a tensor train representation of a
 
matrix. Syntax:
 
matrix. Syntax:
−
 
−
 
  
 
     answer=mean(ttrain,dim)
 
     answer=mean(ttrain,dim)

Revision as of 12:31, 25 April 2026

Mean of elements of a tensor train representation of a matrix. Syntax:

    answer=mean(ttrain,dim)

The mean value is computed along the specified dimension (dim=1 or dim=2).

See also

ttclass.m, ttclass/sum.m, ttclass/trace.m, Tensor train functions