Tested tool guide
Tested browser tools
Checked August 16, 2026
What Tensor Operations Calculator does, with a checked example
Fill in the components of a rank-2 or rank-3 tensor as grids of numbers, choose an operation, and the tool returns the result as a new component grid. Tensor products pair every component of one grid with every component of the other and raise the rank; contractions sum over a chosen index pair and lower it. The surprise is that the ordinary matrix product is itself a contraction - a sum over the shared index - so 'product' here does not multiply components one by one. Everything is computed in the browser from the grids you enter.
Worked example
A concrete input and expected output from the current implementation.
Input
A = [[1, 2], [3, 4]] and B = [[5, 6], [7, 8]] as rank-2 grids; operation: contract the shared index (matrix product A_ij B_jk)
->
Expected output
A 2x2 grid with rows [19, 22] and [43, 50].
Contraction sums over the repeated index j: (AB)_ik = A_i1 B_1k + A_i2 B_2k. Entry (AB)_11 = 1x5 + 2x7 = 19; the other entries are 1x6 + 2x8 = 22, 3x5 + 4x7 = 43, and 3x6 + 4x8 = 50. Two free indices remain, so the output keeps the same 2x2 shape.