sum of a list of tensors
T = sum(T) % sum along the first non singleton dimension T = sum(T,dim) % sum along dimension dim