Module Sundials.LintArray

module LintArray: Sundials_LintArray

Vectors of integers (one-dimensional bigarrays).


type t = (int, Stdlib.Bigarray.int_elt, Stdlib.Bigarray.c_layout)
Stdlib.Bigarray.Array1.t

A Bigarray of integers.

val make : int -> int -> t

make n v 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).