views: Zero-copy Views

viewsR Documentation

Zero-copy Views

Description

Views are explicit slice descriptors over shared arrays/matrices. They avoid creating slice-sized allocations (e.g. Y[, a:b]) by carrying only metadata plus a reference to the shared backing.

Details

This is a low-level optimization handle: arbitrary base R operations may materialize a view; use materialize() explicitly when you want a standard matrix/array.


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