public interface IRingElement<RE extends IRingElement<RE>>
Modifier and Type | Method and Description |
---|---|
RE |
abs()
Returns absolute value of this element
|
RE |
add(RE other)
Calculates the sum of this RingElement and another one.
|
RE |
apply(MonadicOperator<RE> fun)
Returns the result of applying a specified function to this
FielkdElement.
|
int |
compareTo(RE o) |
RE |
divide(RE val) |
boolean |
equals(java.lang.Object obj)
Determines whether or not two IRingElements are equal.
|
boolean |
ge(RE val)
Checks whether this IRingElement is mathematically greater than or equal
to another.
|
IRingElementFactory<RE> |
getFactory()
Give access to the factory for this type.
|
boolean |
gt(RE val)
Checks whether this IRingElement is mathematically greater than another.
|
RE |
invert()
Inverts this ring element (divides one by it)
|
boolean |
isOne()
Tests if this IRingElement is the neutral element of multiplication
(one).
|
boolean |
isZero()
Tests if this RingElement is the neutral element of addition (zero).
|
boolean |
le(RE val)
Checks whether this IRingElement is mathematically less than or equal to
another.
|
boolean |
lt(RE val)
Checks whether this IRingElement is mathematically less than another.
|
RE |
multiply(RE other)
Calculates the product of this IRingElement and another one.
|
RE |
negate()
Calculates the inverse element of addition for this IRingElement.
|
RE |
norm() |
RE |
subtract(RE val)
Calculates the difference of this IRingElement and another one.
|
boolean isZero()
RE add(RE other)
other
- RE subtract(RE val)
val
- RE negate()
boolean isOne()
RE multiply(RE other)
other
- boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- int compareTo(RE o)
o
- the objectRE apply(MonadicOperator<RE> fun)
fun
- the function to applyIRingElement
RE abs()
RE norm()
boolean lt(RE val)
val
- boolean gt(RE val)
val
- boolean le(RE val)
val
- boolean ge(RE val)
val
- RE invert() throws DivisionByZeroException
DivisionByZeroException
- if this is equal to the zero element.RE divide(RE val) throws DivisionByZeroException
val
- DivisionByZeroException
IRingElementFactory<RE> getFactory()