DelayedDiagonalArray {DelayedTensor} | R Documentation

## Diagonal DelayedArray

### Description

Constructor of the diagonal of a DelayedArray.

### Usage

    DelayedDiagonalArray(shape, value)

### Arguments

`shape` | Shape of DelayedArray (mode of Tensor)
`value` | either a single value or a vector. This argument is optional. If nothing is specified, 1s are filled with each diagonal element.

### Details

See also `diag` or `diag`.

### Value

DelayedArray object

### References

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

### See Also

`diag`, `diag`

### Examples

    darr <- DelayedDiagonalArray(2:4, 5)
    DelayedTensor::diag(darr)

[Package DelayedTensor version 1.0.0 Index]