view_block: Create a contiguous block view

View source: R/views.R

view_blockR Documentation

Create a contiguous block view

Description

Create a contiguous block view

Usage

view_block(x, rows = NULL, cols = NULL)

Arguments

x

A shared (share()d) atomic matrix.

rows

NULL or idx_range().

cols

NULL or idx_range().

Value

A shard_view_block object representing the contiguous block slice.

Examples


m <- share(matrix(1:20, nrow = 4))
v <- view_block(m, cols = idx_range(1, 2))


shard documentation built on April 3, 2026, 9:08 a.m.