vec-methods | R Documentation |
Change the dimension of DelayedArray from multi-dimension (e.g. array) to single-dimension (e.g. vector).
vec(darr)
## S4 method for signature 'DelayedArray'
vec(darr)
darr |
DelayedArray object |
This function is an extension of the vec
by DelayedArray.
1D DelayedArray (vector) with length prod(dim(darr))
T. Kolda, B. Bader, "Tensor decomposition and applications". SIAM Applied Mathematics and Applications 2009.
library("DelayedRandomArray")
darr <- RandomUnifArray(c(2,3,4))
vec(darr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.