sum

(method of tensor)

sum over all tensors allong dimension 1

Syntax

T = sum(T,dim)