View source: R/902_BTRTucker_sampling_fns.R
kFold | R Documentation |
Perform mode-k matricization on an array
kFold(x, k)
x |
an array |
k |
an integer or vector of integers |
a matrix with dimensions prod(dim(x)[k]) x prod(dim(X)[-k])
set.seed(47408)
p <- rep(50,3)
N <- 20
A <- array(rnorm(prod(p,N)),dim = c(p,N))
Ak <- kFold(A,2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.