|
JAutoDiff | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnilgiri.math.DoubleRealFactory
public class DoubleRealFactory
A singleton factory for creating the zero element and unity of DoubleReal.
Method Summary | |
---|---|
DoubleReal |
create(double i_v)
Returns an object of DoubleReal whose value is i_v. |
static DoubleRealFactory |
instance()
Returns the singleton object of this class. |
DoubleReal |
one()
Returns the unity (multiplicative identity) of X. |
DoubleReal |
zero()
Returns the zero element (additive identity) of X. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static DoubleRealFactory instance()
public DoubleReal create(double i_v)
i_v
-
public DoubleReal zero()
AbstractFieldFactory
zero
in interface AbstractFieldFactory<DoubleReal>
public DoubleReal one()
AbstractFieldFactory
one
in interface AbstractFieldFactory<DoubleReal>
|
JAutoDiff | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |