package modelkit

  1. Overview
  2. Docs

Module Modelkit.Row_viewSource

An immutable ordered selection of rows from an aligned source.

Construction copies and validates the indices. Order and duplicates are preserved to support deterministic resampling.

Sourcetype t
Sourceval create : source_size:int -> int array -> (t, Data_error.t) result
Sourceval all : source_size:int -> (t, Data_error.t) result
Sourceval source_size : t -> int
Sourceval length : t -> int
Sourceval get : t -> int -> int

get view position returns the source row at position.

Raises Invalid_argument if position is outside the view.

Sourceval indices : t -> int array