I've been trying to understand generalizations of matrix multiplications, in particular for "cube" matrices ($n \times m \times p$). I found the following answer,
Is there a 3-dimensional "matrix" by "matrix" product?
and read the wikipedia page mentioned there, but my experience with tensors is somewhat limited (I've seen their definitions in module theory and done some proofs about them, but I've done very few actual computations with them), so I'm really struggling to figure out how to apply the idea of a contraction.
If $A$ is $n \times m \times p$ and $B$ is $q \times r \times s$, then what conditions on those dimensions are necessary to facilitate a "multiplication" $AB$? How does it relate to a contraction? What is the resultant? I can't figure out what the vector spaces $V$ and $V^*$ need to be to relate this situation to a contraction.
The answer in the stack overflow page above gives a rank 4 tensor example, but I can't seem to make it work in the rank 3 tensor example. What am I missing?