SMS: Tensor calculas