0
$\begingroup$

I want to write the tensor product A $\otimes$ B in matrix form, where\begin{equation} A= \left[ {\begin{array}{cc} 1 & 2 & 3\\ 4 & 5 &6 \\ 7 & 8 &9 \\ \end{array} } \right] \end{equation} and B is not specified, in the form\begin{equation}A \otimes B = \left[ {\begin{array}{cc} 1 & 2 & 3\\ 4 & 5 &6 \\ 7 & 8 &9 \\ \end{array} } \right] \otimes B\end{equation}However, by writing:

TensorProduct[{{1,2,3},{4,5,6},{7,8,9}}, B] //MatrixForm

I obtain the form {{1,2,3},{4,5,6},{7,8,9}} $\otimes$ B as an output, which I do not want.

$\endgroup$
1
  • $\begingroup$ Is this just for presentation? You could do MapAt[MatrixForm, TensorProduct[{{1, 2, 3},{4, 5, 6}, {7, 8, 9}}, B],1]. You could also do TensorProduct[{{1, 2, 3}, {4, 5, 6}, {7, 8, 9}}, B] //TraditionalForm $\endgroup$ – flinty Aug 8 '20 at 10:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.