kronecker_fns

kronecker_fns#

kron_prod(A, B, R)

Computes the matrix vector product of the kronecker product of two matrices A and B times a vector r, stored as an (N_l, N_t) array R.

make_vec(R)

Function for converting a matrix of shape (N_l, N_t) into a vector of shape (N_l * N_t,).

make_mat(r, N_l, N_t)

Function for converting a vector of shape (N_l * N_t,) into an array of shape (N_l, N_t).