Package edu.jas.poly
Class RatToInt
- java.lang.Object
-
- edu.jas.poly.RatToInt
-
- All Implemented Interfaces:
UnaryFunctor<BigRational,BigInteger>
class RatToInt extends java.lang.Object implements UnaryFunctor<BigRational,BigInteger>
Conversion of BigRational to BigInteger with division by lcm functor. result = num*(lcm/denom).
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.math.BigInteger
lcm
-
Constructor Summary
Constructors Constructor Description RatToInt(java.math.BigInteger lcm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigInteger
eval(BigRational c)
Evaluate.
-
-
-
Method Detail
-
eval
public BigInteger eval(BigRational c)
Description copied from interface:UnaryFunctor
Evaluate.- Specified by:
eval
in interfaceUnaryFunctor<BigRational,BigInteger>
- Returns:
- evaluated element.
-
-