setSparse {DelayedTensor} | R Documentation

## Setter to set the intermediate DelayedArray object in DelayedTensor

### Description

Set whether the intermediate and output DelayedArray used in DelayedTensor is used as sparse tensor or not.

NOTE: Sparse mode is experimental! Whether it contributes to higher speed and lower memory is quite dependent on the sparsity of the DelayedArray, and the current implementation does not recognize the block size, which may cause Out-of-Memory errors.

### Usage

    setSparse(as.sparse=FALSE)

### Arguments

`as.sparse` | TRUE or FALSE (Default: FALSE)

### Value

Nothing

### Examples

    setSparse(TRUE)
    setSparse(FALSE)

[Package DelayedTensor version 1.0.0 Index]