Class DoubleCheating
- java.lang.Object
-
- org.tensorics.core.fields.doubles.DoubleCheating
-
- All Implemented Interfaces:
Cheating<java.lang.Double>
public class DoubleCheating extends java.lang.Object implements Cheating<java.lang.Double>
The implementation of those special methods which are (still) necessary to convert field elements to doubles and vice versa. Anyhow, the implementation for doubles it is trivial and does not harm.
-
-
Constructor Summary
Constructors Constructor Description DoubleCheating()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Double
fromDouble(double value)
Deprecated.the whole class should not be necessary in the future, if the base-conversions are based fully on field operations.double
toDouble(java.lang.Double value)
Deprecated.the whole class should not be necessary in the future, if the base-conversions are based fully on field operations.
-
-
-
Method Detail
-
fromDouble
@Deprecated public java.lang.Double fromDouble(double value)
Deprecated.the whole class should not be necessary in the future, if the base-conversions are based fully on field operations.Converts a double value to a field element (double).- Specified by:
fromDouble
in interfaceCheating<java.lang.Double>
- Parameters:
value
- the double value from which to construct the field element.- Returns:
- the field element constructed from the double value
-
toDouble
@Deprecated public double toDouble(java.lang.Double value)
Deprecated.the whole class should not be necessary in the future, if the base-conversions are based fully on field operations.Converts field element (double) to a double value.
-
-