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.BigIntegerlcm
-
Constructor Summary
Constructors Constructor Description RatToInt(java.math.BigInteger lcm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigIntegereval(BigRational c)Evaluate.
-
-
-
Method Detail
-
eval
public BigInteger eval(BigRational c)
Description copied from interface:UnaryFunctorEvaluate.- Specified by:
evalin interfaceUnaryFunctor<BigRational,BigInteger>- Returns:
- evaluated element.
-
-