Module Sundials_NonlinearSolver.Senswrapper

module Senswrapper: sig .. end

A limited interface to arrays of Nvector.nvectors required to apply nonlinear solvers to sensitivity problems.


type ('d, 'k) t = ('d, 'k) Senswrapper.t 

A senswrapper is an Nvector.nvector of Nvector.nvectors that cannot be created or manipulated from OCaml.

val data : ('d, 'k) t -> 'd array

Creates an array to the nvector data within a senswrapper. Given s1, s2 : ('d, 'k) t where s1 = s2, then data s1 and data s2 access the same underlying data. This fact can be exploited for caching the array in callbacks.