Module Nvector_serial

module Nvector_serial: sig .. end

Standard serial nvectors of Sundials.

type data = Sundials.RealArray.t 

Serial nvectors are based on bigarrays of floats.

type kind = [ `Serial ] 

Represents any nvector that can be treated as a serial nvector. That is, any nvector whose underlying elements can be accessed as an array locally.

type t = (data, kind) Nvector.t 

The type of serial nvectors.

type [> kind ] any = (data, [> kind ] as 'k) Nvector.t 

The type of any nvector that can be used as a serial nvector.

val make : int -> float -> t

make n iv creates a new serial nvector with n elements, each initialized to iv.

val wrap : Sundials.RealArray.t -> t

wrap a creates a new serial nvector over the elements of a.

val unwrap : t -> Sundials.RealArray.t

Aliases Nvector.unwrap.

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

Pretty-print a serial nvector using the Format module.

module Ops: Nvector.NVECTOR_OPS  with type t = t

Underlying nvector operations on serial nvectors.

module DataOps: Nvector.NVECTOR_OPS  with type t = RealArray.t

Nvector operations on RealArrays implemented in OCaml.