mean

(method of tensor)

mean of a list of tensors

Syntax

T = mean(T) mean along the first non singleton dimension T = mean(T,dim) mean along dimension dim

Input

T

tensor

dim

dimension with respect to which the mean is taken