delarr: Create a delayed matrix

View source: R/delarr-core.R

delarrR Documentation

Create a delayed matrix

Description

Wraps an existing matrix or delarr_seed in the lightweight delayed pipeline. Matrix inputs are wrapped in a seed that simply slices the source object, while delarr inputs are returned unchanged.

Usage

delarr(x, ...)

Arguments

x

A base matrix or a delarr_seed to wrap.

...

Future extensions; currently ignored.

Value

A delarr object representing the delayed matrix.

Examples

# Create a delayed matrix from a regular matrix
mat <- matrix(1:12, nrow = 3, ncol = 4)
darr <- delarr(mat)
darr

# Operations are queued lazily
result <- darr * 2
result

# Materialize with collect()
collect(result)


delarr documentation built on July 1, 2026, 1:06 a.m.