Compute the row tensor product of two matrices with identical numbers of rows.
rowtens(X, Y = X)The row-wise tensor product of the two matrices.
a numeric matrix.
a numeric matrix (if missing, Y = x).
Paul Eilers
The input matrices must have the same number of rows, say m. If their numbers of columns are n1 and n2,
the result is a matrix with m rows and n1 * n2 columns. Each row of the result is the Kronecker
product of the corresponding rows of X and Y.
Eilers, P. H. C. and Currie, I. D. and Durban, M. (2006) Fast and compact smoothing on large multidimensional grids CSDA 50, 61--76.