
Matrix Tensor Product

cmw32
//and places the result in the matrix prod. The matrix prod is resized to the appropriate
//dimension.
//The Tensor Product of two matrices arises in mathematics when two vector spaces are
//composed to make one larger vector space. It is used commonly in quantum mechanics
//when studying the interaction of two systems.
function MatrixTensorProduct(A,B,prod) wave A,B,prod variable n1,n2,n n1 = dimsize(A,0) n2 = dimsize(B,0) n = n1*n2 Redimension/n=(n,n) prod prod = A[(floor(p/n2))][(floor(q/n2))]*B[(mod(p,n2))][(mod(q,n2))] end

Forum

Support

Gallery
Igor Pro 9
Learn More
Igor XOP Toolkit
Learn More
Igor NIDAQ Tools MX
Learn More