Computation of the matrix with rows being the linearized matrix products of X[,,i] and B.
X[,,i]
B
Useful links