public class FixedPrecisionApfloatField extends AbstractField<FixedPrecisionApfloatField,Apfloat>
FixedPrecisionApfloatHelper
.
This can help avoid accumulating round-off errors and loss of precision
in complicated computations such as matrix inversion.Constructor and Description |
---|
FixedPrecisionApfloatField(Apfloat value,
FixedPrecisionApfloatHelper helper)
Constructs a new floating-point field object with the specified value.
|
Modifier and Type | Method and Description |
---|---|
FixedPrecisionApfloatField |
copy()
Returns a copy of this object.
|
FixedPrecisionApfloatHelper |
helper()
Return the precision helper.
|
FixedPrecisionApfloatField |
inverse()
Returns the multiplicative inverse of this object.
|
FixedPrecisionApfloatField |
opposite()
Returns the additive inverse of this object.
|
FixedPrecisionApfloatField |
plus(FixedPrecisionApfloatField that)
Returns the sum of this object with the one specified.
|
FixedPrecisionApfloatField |
times(FixedPrecisionApfloatField that)
Returns the product of this object with the one specified.
|
compareTo, doubleValue, equals, hashCode, isLargerThan, longValue, toText, value
byteValue, floatValue, intValue, isGreaterThan, isLessThan, minus, pow, shortValue, toString
public FixedPrecisionApfloatField(Apfloat value, FixedPrecisionApfloatHelper helper)
value
- The value.helper
- The precision helper.public FixedPrecisionApfloatField plus(FixedPrecisionApfloatField that)
AbstractField
plus
in interface GroupAdditive<FixedPrecisionApfloatField>
plus
in class AbstractField<FixedPrecisionApfloatField,Apfloat>
that
- The addend.this + that
public FixedPrecisionApfloatField opposite()
AbstractField
opposite
in interface GroupAdditive<FixedPrecisionApfloatField>
opposite
in class AbstractField<FixedPrecisionApfloatField,Apfloat>
-this
public FixedPrecisionApfloatField times(FixedPrecisionApfloatField that)
AbstractField
times
in interface GroupMultiplicative<FixedPrecisionApfloatField>
times
in interface Ring<FixedPrecisionApfloatField>
times
in class AbstractField<FixedPrecisionApfloatField,Apfloat>
that
- The multiplicand.this * that
public FixedPrecisionApfloatField inverse() throws ArithmeticException
AbstractField
inverse
in interface GroupMultiplicative<FixedPrecisionApfloatField>
inverse
in class AbstractField<FixedPrecisionApfloatField,Apfloat>
1 / this
ArithmeticException
- If the divisor is zero.public FixedPrecisionApfloatField copy()
AbstractField
copy
in interface ValueType
copy
in class AbstractField<FixedPrecisionApfloatField,Apfloat>
public FixedPrecisionApfloatHelper helper()