Kronecker product for large matrices

后端 未结 2 2130
有刺的猬
有刺的猬 2021-01-02 13:13

I am looking for an effficient way of computing the Kronecker product of two large matrices. I have tried using the method kronecker() as follows:



        
2条回答
  •  清歌不尽
    2021-01-02 13:46

    If you are computing kron(I,A)*v where v is a vector you can do this using vec(A*V) where V reshapes v into a matrix. This uses the more general rule that vec(ABC)=kron(C',A)*vec(B). This avoids forming the Kronecker product and uses far less operations to perform the computation.

    Note that V may need to be transposed depending on how matrix storage is handled (columns versus rows).

提交回复
热议问题