If I have a vector $v$ of length $n_1\times n_2\times n_3$ and a matrix $M$ of shape $(n_1\times n_2\times n_3, n_1\times n_2\times n_3)$, I can do matrix vector multiplication of $Mv$ to get a resulting vector $v'$ of size $n_1\times n_2\times n_3$.
So far so good.
Question
Let's say I reshape $v, v'$ into a matrices each with three dimensions (i.e., have size $(n_1, n_2, n_3)$). Is there:
- an operation I can perform on $M$
- a way to apply $M$ to vector $v$
so that $M$ applied to 3d matrix $v$ gives 3d matrix $v'$?
Initial thoughts
It seems it should be possible because if I write things as a vector then I know how to do matrix multiplication.
But if I rewrite $v, v'$ as matrices, the problem is $M$ somehow needs to be applied to $n_1, n_2, n_3$ dimensions correctly. I suspect this is related to Kronecker products/tensor products because I know that is one way to build bigger spaces from smaller spaces, but I am not sure what I would take the tensor product of $M$ with.