module Linexpr1:sig
..end
type
t = {
|
mutable linexpr0 : |
|
mutable env : |
val make : ?sparse:bool -> Environment.t -> t
val minimize : t -> unit
val copy : t -> t
val print : Format.formatter -> t -> unit
val set_list : t -> (Coeff.t * Var.t) list -> Coeff.t option -> unit
set_list expr [(c1,"x"); (c2,"y")] (Some cst)
assigns coefficients c1
to variable "x"
, coefficient c2
to variable "y"
, and coefficient cst
to the constant. If (Some cst)
is replaced by None
,
the constant coefficient is not assigned.
val set_array : t -> (Coeff.t * Var.t) array -> Coeff.t option -> unit
set_list
.val iter : (Coeff.t -> Var.t -> unit) -> t -> unit
val get_cst : t -> Coeff.t
val set_cst : t -> Coeff.t -> unit
val get_coeff : t -> Var.t -> Coeff.t
val set_coeff : t -> Var.t -> Coeff.t -> unit
val extend_environment : t -> Environment.t -> t
Failure
if it is not the caseval extend_environment_with : t -> Environment.t -> unit
val is_integer : t -> bool
val is_real : t -> bool
val get_linexpr0 : t -> Linexpr0.t
val get_env : t -> Environment.t