module Linexpr0:sig
..end
type
t
val make : int option -> t
None
is provided, dense of size size
if Some size
is provided.val of_list : int option ->
(Apron.Coeff.t * Apron.Dim.t) list ->
Apron.Coeff.t option -> t
val of_array : int option ->
(Apron.Coeff.t * Apron.Dim.t) array ->
Apron.Coeff.t option -> t
val minimize : t -> unit
val copy : t -> t
val compare : t -> t -> int
val hash : t -> int
val get_size : t -> int
val get_cst : t -> Apron.Coeff.t
val get_coeff : t -> int -> Apron.Coeff.t
val set_list : t ->
(Apron.Coeff.t * Apron.Dim.t) list -> Apron.Coeff.t option -> unit
set_list expr [(c1,1); (c2,2)] (Some cst)
assigns coefficients c1
to dimension 1, coefficient c2
to dimension 2, and coefficient cst
to the constant. If (Some cst)
is replaced by None
,
the constant coefficient is not assigned.
val set_array : t ->
(Apron.Coeff.t * Apron.Dim.t) array -> Apron.Coeff.t option -> unit
set_list
.val set_cst : t -> Apron.Coeff.t -> unit
val set_coeff : t -> int -> Apron.Coeff.t -> unit
val iter : (Apron.Coeff.t -> Apron.Dim.t -> unit) -> t -> unit
val print : (Apron.Dim.t -> string) -> Format.formatter -> t -> unit