module RealArray: Sundials_RealArrayVectors of floats (one-dimensional bigarrays).
typet =(float, Stdlib.Bigarray.float64_elt, Stdlib.Bigarray.c_layout)
Stdlib.Bigarray.Array1.t
A Bigarray of floats.
val make : int -> float -> tmake n x returns an array with n elements each set to x.
val create : int -> tcreate n returns an uninitialized array with n elements.
val empty : tAn array with no elements.
val get : t -> int -> floatget a i returns the ith element of a.
val set : t -> int -> float -> unitset a i v sets the ith element of a to v.
val init : int -> (int -> float) -> tinit n f returns an array with n elements, with element i
set to f i.
val pp : Stdlib.Format.formatter -> t -> unitPretty-print an array using the Format module.
val ppi : ?start:string ->
?stop:string ->
?sep:string ->
?item:(Stdlib.Format.formatter -> int -> float -> unit) ->
unit -> Stdlib.Format.formatter -> t -> unitval of_array : float array -> tCreates an array by copying the contents of a
float array.
val of_list : float list -> tCreates an array by copying the contents of a
float list.
val to_array : t -> float arrayCopies into a new float array.
val into_array : t -> float array -> unitCopies into an existing
float array.
val to_list : t -> float listCopies into a float list.
val copy : t -> tCreates a new array with the same contents as an existing one.
val sub : t -> int -> int -> tAccess a sub-array of the given array without copying.
val blitn : src:t ->
?spos:int -> dst:t -> ?dpos:int -> int -> unitblitn ~src ?spos ~dst ?dpos len copies len elements of src at
offset spos to dst at offset dpos.
The spos and dpos arguments are optional and default to zero.
Invalid_argument "RealArray.nblit" if spos, dpos, and
len do not specify valid subarrays of src and dst.val blit : src:t -> dst:t -> unitCopy the first array into the second one.
See
Bigarray.Genarray.blit for more details.
val fill : t -> ?pos:int -> ?len:int -> float -> unitfill a c sets elements of a to the constant c.
The elements from pos to pos + len - 1 are set to the constant,
with pos defaulting to 0 and len to the length of the array.
val length : t -> intReturns the length of an array.
val fold_left : ('a -> float -> 'a) -> 'a -> t -> 'afold_left f b a returns f (f (f b a.{0}) a.{1}) ...).
val fold_right : (float -> 'a -> 'a) -> t -> 'a -> 'afold_right f b a returns (f ... (f a.{n-2} (f a.{n-1} b))).
val iter : (float -> unit) -> t -> unititer f a successively applies f to the elements of a.
val iteri : (int -> float -> unit) -> t -> unititeri f a successively applies f to the indexes and values
of a.
val map : (float -> float) -> t -> unitmap f a replaces each element a.{i} with f a.{i}.
val mapi : (int -> float -> float) -> t -> unitmap f a replaces each element a.{i} with f i a.{i}.