Package org.apache.commons.numbers.field
Class DDField
- java.lang.Object
-
- org.apache.commons.numbers.field.AbstractField<DD>
-
- org.apache.commons.numbers.field.DDField
-
public final class DDField extends AbstractField<DD>
DDfield.- Since:
- 1.2
-
-
Constructor Summary
Constructors Modifier Constructor Description privateDDField()Singleton.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DDFieldget()Get the field instance.DDone()Return the value of one.DDzero()Return the value of zero.-
Methods inherited from class org.apache.commons.numbers.field.AbstractField
add, divide, multiply, multiply, negate, reciprocal, subtract
-
-
-
-
Field Detail
-
INSTANCE
private static final DDField INSTANCE
Singleton.
-
-
Method Detail
-
get
public static DDField get()
Get the field instance.- Returns:
- the field instance.
-
one
public DD one()
Return the value of one.- Returns:
- the field element
1such that for alla,1 * a == a.
-
zero
public DD zero()
Return the value of zero.- Returns:
- the field element
0such that for alla,0 + a == a.
-
-