public abstract class Coeff
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
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.
Constructor and Description |
---|
Coeff() |
Modifier and Type | Method and Description |
---|---|
abstract int |
cmp(Coeff x)
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 |
equals(java.lang.Object x)
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(Coeff x)
Whether this equals x.
|
abstract boolean |
isEqual(int i)
Whether this represents the singleton i.
|
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 java.lang.String |
toString()
Returns a string representation of this.
|
public static Coeff create()
public abstract Coeff copy()
public abstract Scalar inf()
public abstract Scalar sup()
public abstract java.lang.String toString()
toString
in class java.lang.Object
public abstract int hashCode()
hashCode
in class java.lang.Object
public abstract boolean isZero()
public abstract boolean isScalar()
public abstract boolean isEqual(int i)
public abstract boolean isEqual(Coeff x)
public abstract int cmp(Coeff x)
Interval.cmp(Interval)
public abstract void neg()
public boolean equals(java.lang.Object x)
equals
in class java.lang.Object