package modelkit
Module Modelkit.VectorSource
Immutable one-dimensional float64 data.
Values use C-layout Bigarray storage. Admission from and export to a Bigarray copy the buffer so mutation outside ModelKit cannot change an admitted value.
type bigarray =
(float, Bigarray.float64_elt, Bigarray.c_layout) Bigarray.Array1.tval create : length:int -> float -> (t, Data_error.t) resultval init : length:int -> (int -> float) -> (t, Data_error.t) resultval of_array : float array -> tval length : t -> intval get : t -> int -> floatget vector index returns the value at index.
Raises Invalid_argument if index is outside the vector.
val to_array : t -> float array