UniformTuckerTensorTrain.sum#

t3toolbox.uniform_tucker_tensor_train.UniformTuckerTensorTrain.sum(axis=None)#
def sum(self, axis=None) -> NDArray:

Sum the represented tensor over all physical modes (shape=stack_shape). A partial sum (axis given) is not implemented on the uniform layer; use the ragged twin, x.to_t3().sum(axis).

Return type:

NDArray