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 -> floatReturn the value from the array at the given index.
val set : data -> int -> float -> unitUpdate the value in the array at the given index.
val fill : data -> float -> unitFill the array with a value.
val make : int -> float -> dataCreate an array of the given length initialized to the given value.
val clone : data -> dataCreate a copy of an array.
val length : data -> intReturn the length of an array.