Module Sundials.LintArray

module LintArray: Sundials_LintArray

Vectors of integers (one-dimensional bigarrays).


type t = (int, Bigarray.int_elt, Bigarray.c_layout) Bigarray.Array1.t 
val make : int -> int -> t

make n x returns an array with n elements each set to v.

val create : int -> t

create n returns an uninitialized array with n elements.

val empty : t

An array with no elements.

val pp : Stdlib.Format.formatter -> t -> unit

Pretty-print an array using the Format module.

val ppi : ?start:string ->
?stop:string ->
?sep:string ->
?item:(Stdlib.Format.formatter -> int -> int -> unit) ->
unit -> Stdlib.Format.formatter -> t -> unit

Pretty-print an array using the Format module. The defaults are: start="[", stop="]", sep="; ", and item=fun f->Format.fprintf f "%2d=% 6d" (see fprintf).