Efficiently computing element wise product of transition matrices (m*m) * (n*n) to give (mn*mn) matrix Efficiently computing element wise product of transition matrices (m*m) * (n*n) to give (mn*mn) matrix numpy numpy