tensor.in | R Documentation |
Function called recursively inside tensor.prod.X
.
tensor.in(X1, X2)
X1 |
first marginal design matrix with n rows and p1 columns |
X2 |
first marginal design matrix with n rows and p2 columns |
Matrix of dimensions n*(p1*p2) representing the row tensor product of the matrices X1 and X2
library(survPen)
# row-wise tensor product between two design matrices
set.seed(15)
X1 <- matrix(rnorm(10*3),nrow=10,ncol=3)
X2 <- matrix(rnorm(10*2),nrow=10,ncol=2)
tensor.in(X1,X2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.