module type ArrayOps =sig
..end
A minimal interface for creating a custom nvector on an array type.
type
data
The type of an array to be wrapped as an Nvector.t
.
val get : data -> int -> float
Return the value from the array at the given index.
val set : data -> int -> float -> unit
Update the value in the array at the given index.
val fill : data -> float -> unit
Fill the array with a value.
val make : int -> float -> data
Create an array of the given length initialized to the given value.
val clone : data -> data
Create a copy of an array.
val length : data -> int
Return the length of an array.