matrix_of_scalars -> tensor_of_scalars