You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This can be re-written according to the following relationship:
$$
(A \otimes B) C = \text{vec}(B X A^T)
$$
Where $\otimes$ is the kronecker product, and the $\text{vec}$ operation ravels a matrix in column-major order. $X$ is a matrix formed by reshaping $C$ (in column-major order) to conform with $B$. This avoids working with the large kronecker product matrix, and instead gets the result in terms of the much smaller components. Code example:
This trick is already used in PyMC here, but only in a limited context. PyMC applies this identity to solve_triangular as well, but it can (and should) also be applied to other types of solve.
The text was updated successfully, but these errors were encountered:
Description
This can be re-written according to the following relationship:
Where$\otimes$ is the kronecker product, and the $\text{vec}$ operation ravels a matrix in column-major order. $X$ is a matrix formed by reshaping $C$ (in column-major order) to conform with $B$ . This avoids working with the large kronecker product matrix, and instead gets the result in terms of the much smaller components. Code example:
This trick is already used in PyMC here, but only in a limited context. PyMC applies this identity to
solve_triangular
as well, but it can (and should) also be applied to other types of solve.The text was updated successfully, but these errors were encountered: