Package org.tensorics.core.math.impl
Class ExtendedFieldImpl<T>
- java.lang.Object
-
- org.tensorics.core.math.impl.ExplicitFieldImpl<T>
-
- org.tensorics.core.math.impl.ExtendedFieldImpl<T>
-
- Type Parameters:
T
- the type of elements of the field
- All Implemented Interfaces:
ExplicitField<T>
,ExtendedField<T>
public class ExtendedFieldImpl<T> extends ExplicitFieldImpl<T> implements ExtendedField<T>
allows to hook in different implementations for more complicated mathematical operations.
-
-
Constructor Summary
Constructors Constructor Description ExtendedFieldImpl(OrderedField<T> field, Math<T> math, Cheating<T> cheating)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Cheating<T>
cheating()
Deprecated.because it shall be removed as soon as a better way to handle units (based on field elements) is providedBinaryOperation<T>
power()
Has to return the operation for a^b, for a being the left operator, b being the right one.BinaryOperation<T>
root()
-
Methods inherited from class org.tensorics.core.math.impl.ExplicitFieldImpl
absoluteValue, addition, additiveInversion, comparator, division, equal, greater, greaterOrEqual, less, lessOrEqual, multiplication, multiplicativeInversion, one, subtraction, two, zero
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.tensorics.core.math.ExplicitField
absoluteValue, addition, additiveInversion, comparator, division, equal, greater, greaterOrEqual, less, lessOrEqual, multiplication, multiplicativeInversion, one, subtraction, two, zero
-
-
-
-
Method Detail
-
power
public BinaryOperation<T> power()
Description copied from interface:ExtendedField
Has to return the operation for a^b, for a being the left operator, b being the right one.- Specified by:
power
in interfaceExtendedField<T>
- Returns:
- the operation for a^b.
-
root
public BinaryOperation<T> root()
- Specified by:
root
in interfaceExtendedField<T>
-
cheating
@Deprecated public Cheating<T> cheating()
Deprecated.because it shall be removed as soon as a better way to handle units (based on field elements) is providedReturns the instance which provides methods to convert field elements from and to double values. It is intended that this mechanism can be replaced later by a re implementation of the base-calculations which are fully based on field elements. To avoid heavy usage until then, this method is marked as deprecated.- Specified by:
cheating
in interfaceExtendedField<T>
- Returns:
- an object providing conversion methods from/to double values
-
-