I am trying to solve for $\mathbf{X}$ the following equation
$\mathbf{A}\otimes \mathbf{X}=\mathbf{B}$
Is there a closed form solution to this?
Thank you very much in advance!
I am trying to solve for $\mathbf{X}$ the following equation
$\mathbf{A}\otimes \mathbf{X}=\mathbf{B}$
Is there a closed form solution to this?
Thank you very much in advance!
Assume the following dimensions for the variables
$$\eqalign{
\def\sz{\operatorname{size}}
m,n=\sz(A) \qquad p,q=\sz(X) \qquad mp,nq=\sz(B) \\
}$$
and let $K_{m,n}$ denote the Commutation Matrix which satisfies
$$\eqalign{
\def\vc{\operatorname{vec}}
\vc(A^T) &= K_{m,n}\vc(A) \\
mn,mn &= \sz(K_{m,n})
}$$
Then the Kronecker product term can be vectorized
$$\eqalign{
\def\LR#1{\left(#1\right)}
\def\BR#1{\Big(#1\Big)}
a &= \vc(A), \qquad x = \vc(X), \qquad b = \vc(B) \\
b &= \vc(A\otimes X) \\
&= \LR{I_n\otimes K_{q,m}\otimes I_p}\LR{a\otimes I_{pq}}x \\
b &= Rx \\
}$$
Since $R$ is rectangular $\big(\sz(R)=mnpq,pq\big)$
the solution requires the pseudoinverse $R^+$
$$\eqalign{
R^+ &= \LR{\frac{a}{\|a\|^2}\otimes I_{pq}}^T\BR{I_n\otimes K_{m,q}\otimes I_p} \\
x &= R^+b \\
X &= \operatorname{Reshape}(x, p,q) \\
}$$
The Reshape() operation can be expressed using even more Kronecker products.
A computationally and conceptually simpler approach is to