Package apron
Class Coeff
java.lang.Object
apron.Coeff
- All Implemented Interfaces:
Serializable
,Cloneable
Abstract class of constant coefficients that can appear in expressions.
A coefficient can be either a Scalar
real singleton or
an Interval
set of real values.
The Coeff class provides methods to manipulate coefficients independently
from the underlying representation.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract int
Compare this and x for inclusion.abstract Coeff
copy()
Creates a copy of the coefficient, of the same kind.static Coeff
create()
Creates a 0 coefficient as a double Scalar.boolean
Whether x is a Coeff has the same value.abstract int
hashCode()
Returns a hash of the value of this.abstract Scalar
inf()
Returns a reference to the lower bound of this.abstract boolean
isEqual
(int i) Whether this represents the singleton i.abstract boolean
Whether this equals x.abstract boolean
isScalar()
Whether this represents a singleton.abstract boolean
isZero()
Whether this represents the singleton 0.abstract void
neg()
Negates this.abstract Scalar
sup()
Returns a reference to the upper bound of this.abstract String
toString()
Returns a string representation of this.
-
Constructor Details
-
Coeff
public Coeff()
-
-
Method Details
-
create
Creates a 0 coefficient as a double Scalar. -
copy
Creates a copy of the coefficient, of the same kind. -
inf
Returns a reference to the lower bound of this. -
sup
Returns a reference to the upper bound of this. -
toString
Returns a string representation of this. -
hashCode
public abstract int hashCode()Returns a hash of the value of this. -
isZero
public abstract boolean isZero()Whether this represents the singleton 0. -
isScalar
public abstract boolean isScalar()Whether this represents a singleton. -
isEqual
public abstract boolean isEqual(int i) Whether this represents the singleton i. -
isEqual
Whether this equals x. -
cmp
Compare this and x for inclusion.- See Also:
-
neg
public abstract void neg()Negates this. -
equals
Whether x is a Coeff has the same value.
-