powered by
Computes the contracted tensor product between two multiway arrays.
ctprod(A,B,K)
An array of dimension P_1 x ... x P_L x R_1 x ... x R_K.
An array of dimension R_1 x ... x R_K x Q_1 x ... x Q_M.
A positive integer, giving the number of modes to collapse.
An array C of dimension P_1 x ... x P_L x Q_1 x ... x Q_M, given by the contracted tensor product of A and B.