Difference between revisions of "Ttclass/mean.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Sync syntax/arguments/outputs with current Spinach source)
(Normalise remaining wiki page to current Spinach source header)
Line 1: Line 1:
 +
{{DISPLAYTITLE:ttclass/mean.m}} __NOTOC__
 +
 
Mean of elements of a tensor train representation of a
 
Mean of elements of a tensor train representation of a
−
matrix. Syntax:
+
matrix.
−
 
 
−
 
 
  
−
    answer=mean(ttrain,dim)
+
==Syntax==
  
−
The mean value is computed along the specified dimension (dim=1 or dim=2).
+
answer=mean(ttrain,dim)

Revision as of 15:13, 5 April 2026


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

Syntax

answer=mean(ttrain,dim)