Learn R Programming

JOPS (version 0.2.0)

rowtens: Compute the row tensor product of two matrices

Description

Compute the row tensor product of two matrices with identical numbers of rows.

Usage

rowtens(X, Y = X)

Value

The row-wise tensor product of the two matrices.

Arguments

X

a numeric matrix.

Y

a numeric matrix (if missing, Y = x).

Author

Paul Eilers

Details

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.

References

Eilers, P. H. C. and Currie, I. D. and Durban, M. (2006) Fast and compact smoothing on large multidimensional grids CSDA 50, 61--76.