vec-methods {DelayedTensor} | R Documentation

## Tensor Vectorization of DelayedArray

### Description

Change the dimension of DelayedArray from multi-dimension (e.g. array) to single-dimension (e.g. vector).

### Usage

    vec(darr)

    ## S4 method for signature 'DelayedArray'
    vec(darr)

### Arguments

`darr` | DelayedArray object

### Details

This function is an extension of the `vec` by DelayedArray.

### Value

1D DelayedArray (vector) with length `prod(dim(darr))`

### References

T. Kolda, B. Bader, "Tensor decomposition and applications". SIAM Applied Mathematics and Applications 2009.

### Examples

    library("DelayedRandomArray")
    darr <- RandomUnifArray(c(2,3,4))
    vec(darr)

[Package DelayedTensor version 1.0.0 Index]