Calculates the contraction of a tensor.
The tensor
const result = Chalkboard.tens.contract([[1, 2], [3, 4]]); // Contracts the tensor along its outer indices Copy
const result = Chalkboard.tens.contract([[1, 2], [3, 4]]); // Contracts the tensor along its outer indices
Calculates the contraction of a tensor.