sig
type csc
type csr
type _ sformat =
CSC : Sundials_Matrix.Sparse.csc Sundials_Matrix.Sparse.sformat
| CSR : Sundials_Matrix.Sparse.csr Sundials_Matrix.Sparse.sformat
type 's t
type index_array =
(Sundials.Index.t, Sundials.Index.index_elt, Stdlib.Bigarray.c_layout)
Stdlib.Bigarray.Array1.t
val make :
's Sundials_Matrix.Sparse.sformat ->
int -> int -> int -> 's Sundials_Matrix.Sparse.t
val from_dense :
's Sundials_Matrix.Sparse.sformat ->
float -> Sundials_Matrix.Dense.t -> 's Sundials_Matrix.Sparse.t
val from_band :
's Sundials_Matrix.Sparse.sformat ->
float -> Sundials_Matrix.Band.t -> 's Sundials_Matrix.Sparse.t
val sformat :
's Sundials_Matrix.Sparse.t -> 's Sundials_Matrix.Sparse.sformat
val is_csc : 's Sundials_Matrix.Sparse.t -> bool
val size : 's Sundials_Matrix.Sparse.t -> int * int
val dims : 's Sundials_Matrix.Sparse.t -> int * int
val pp : Stdlib.Format.formatter -> 's Sundials_Matrix.Sparse.t -> unit
val ppi :
?start:string ->
?stop:string ->
?sep:string ->
?indent:int ->
?itemsep:string ->
?rowcol:(Stdlib.Format.formatter -> int -> unit) ->
?item:(Stdlib.Format.formatter -> int -> float -> unit) ->
unit -> Stdlib.Format.formatter -> 's Sundials_Matrix.Sparse.t -> unit
val set_col :
Sundials_Matrix.Sparse.csc Sundials_Matrix.Sparse.t -> int -> int -> unit
val get_col :
Sundials_Matrix.Sparse.csc Sundials_Matrix.Sparse.t -> int -> int
val set_row :
Sundials_Matrix.Sparse.csr Sundials_Matrix.Sparse.t -> int -> int -> unit
val get_row :
Sundials_Matrix.Sparse.csr Sundials_Matrix.Sparse.t -> int -> int
val set : 'f Sundials_Matrix.Sparse.t -> int -> int -> float -> unit
val get : 'f Sundials_Matrix.Sparse.t -> int -> int * float
val unwrap :
's Sundials_Matrix.Sparse.t ->
Sundials_Matrix.Sparse.index_array * Sundials_Matrix.Sparse.index_array *
Sundials.RealArray.t
val resize : ?nnz:int -> 's Sundials_Matrix.Sparse.t -> unit
val ops :
('s Sundials_Matrix.Sparse.t, Nvector_serial.data)
Sundials_Matrix.matrix_ops
val scale_add :
float ->
's Sundials_Matrix.Sparse.t -> 's Sundials_Matrix.Sparse.t -> unit
val scale_addi : float -> 's Sundials_Matrix.Sparse.t -> unit
val matvec :
's Sundials_Matrix.Sparse.t ->
Sundials.RealArray.t -> Sundials.RealArray.t -> unit
val set_to_zero : 's Sundials_Matrix.Sparse.t -> unit
val blit :
src:'s Sundials_Matrix.Sparse.t ->
dst:'s Sundials_Matrix.Sparse.t -> unit
val copy_to_csr :
Sundials_Matrix.Sparse.csc Sundials_Matrix.Sparse.t ->
Sundials_Matrix.Sparse.csr Sundials_Matrix.Sparse.t
val copy_to_csc :
Sundials_Matrix.Sparse.csr Sundials_Matrix.Sparse.t ->
Sundials_Matrix.Sparse.csc Sundials_Matrix.Sparse.t
val space : 's Sundials_Matrix.Sparse.t -> int * int
val set_rowval :
Sundials_Matrix.Sparse.csc Sundials_Matrix.Sparse.t -> int -> int -> unit
val get_rowval :
Sundials_Matrix.Sparse.csc Sundials_Matrix.Sparse.t -> int -> int
val set_colval :
Sundials_Matrix.Sparse.csr Sundials_Matrix.Sparse.t -> int -> int -> unit
val get_colval :
Sundials_Matrix.Sparse.csr Sundials_Matrix.Sparse.t -> int -> int
val set_data : 'f Sundials_Matrix.Sparse.t -> int -> float -> unit
val get_data : 'f Sundials_Matrix.Sparse.t -> int -> float
val invalidate : 's Sundials_Matrix.Sparse.t -> unit
end