Package org.tensorics.core.math.impl
Class ExplicitFieldImpl<T>
- java.lang.Object
-
- org.tensorics.core.math.impl.ExplicitFieldImpl<T>
-
- Type Parameters:
T
- the type of the field elements
- All Implemented Interfaces:
ExplicitField<T>
- Direct Known Subclasses:
ExtendedFieldImpl
public class ExplicitFieldImpl<T> extends java.lang.Object implements ExplicitField<T>
-
-
Constructor Summary
Constructors Constructor Description ExplicitFieldImpl(OrderedField<T> field)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UnaryOperation<T>
absoluteValue()
BinaryOperation<T>
addition()
Has to return the '+' operation.UnaryOperation<T>
additiveInversion()
java.util.Comparator<T>
comparator()
BinaryOperation<T>
division()
BinaryPredicate<T>
equal()
BinaryPredicate<T>
greater()
BinaryPredicate<T>
greaterOrEqual()
BinaryPredicate<T>
less()
BinaryPredicate<T>
lessOrEqual()
BinaryOperation<T>
multiplication()
Has to return the '*' operation.UnaryOperation<T>
multiplicativeInversion()
T
one()
BinaryOperation<T>
subtraction()
T
two()
T
zero()
-
-
-
Constructor Detail
-
ExplicitFieldImpl
public ExplicitFieldImpl(OrderedField<T> field)
-
-
Method Detail
-
addition
public final BinaryOperation<T> addition()
Description copied from interface:ExplicitField
Has to return the '+' operation.- Specified by:
addition
in interfaceExplicitField<T>
- Returns:
- the operation which can perform a + b.
-
multiplication
public final BinaryOperation<T> multiplication()
Description copied from interface:ExplicitField
Has to return the '*' operation.- Specified by:
multiplication
in interfaceExplicitField<T>
- Returns:
- the operation which can perform a * b.
-
additiveInversion
public final UnaryOperation<T> additiveInversion()
- Specified by:
additiveInversion
in interfaceExplicitField<T>
-
absoluteValue
public UnaryOperation<T> absoluteValue()
- Specified by:
absoluteValue
in interfaceExplicitField<T>
-
subtraction
public final BinaryOperation<T> subtraction()
- Specified by:
subtraction
in interfaceExplicitField<T>
-
zero
public final T zero()
- Specified by:
zero
in interfaceExplicitField<T>
-
division
public final BinaryOperation<T> division()
- Specified by:
division
in interfaceExplicitField<T>
-
multiplicativeInversion
public final UnaryOperation<T> multiplicativeInversion()
- Specified by:
multiplicativeInversion
in interfaceExplicitField<T>
-
one
public final T one()
- Specified by:
one
in interfaceExplicitField<T>
-
two
public final T two()
- Specified by:
two
in interfaceExplicitField<T>
-
less
public BinaryPredicate<T> less()
- Specified by:
less
in interfaceExplicitField<T>
-
lessOrEqual
public BinaryPredicate<T> lessOrEqual()
- Specified by:
lessOrEqual
in interfaceExplicitField<T>
-
equal
public BinaryPredicate<T> equal()
- Specified by:
equal
in interfaceExplicitField<T>
-
greaterOrEqual
public BinaryPredicate<T> greaterOrEqual()
- Specified by:
greaterOrEqual
in interfaceExplicitField<T>
-
greater
public BinaryPredicate<T> greater()
- Specified by:
greater
in interfaceExplicitField<T>
-
comparator
public java.util.Comparator<T> comparator()
- Specified by:
comparator
in interfaceExplicitField<T>
-
-