Kron.m

From Spinach Documentation Wiki
Jump to: navigation, search

Kronecker product of two matrices in a tensor train format. Syntax:

                               c=kron(a,b)

WARNING: the result is not the same as the flat matrix Kronecker product (it is a row and column permutation away from it), but the resulting order of elements is consistent with the output of the tensor train vectorization (ttclass/vec) operation output.