Package edu.jas.root
Class CoeffToReal<C extends GcdRingElem<C> & Rational>
- java.lang.Object
-
- edu.jas.root.CoeffToReal<C>
-
- All Implemented Interfaces:
UnaryFunctor<C,RealAlgebraicNumber<C>>
class CoeffToReal<C extends GcdRingElem<C> & Rational> extends java.lang.Object implements UnaryFunctor<C,RealAlgebraicNumber<C>>
Coefficient to real algebraic functor.
-
-
Field Summary
Fields Modifier and Type Field Description protected RealAlgebraicRing<C>
rfac
protected AlgebraicNumber<C>
zero
-
Constructor Summary
Constructors Constructor Description CoeffToReal(RealAlgebraicRing<C> fac)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RealAlgebraicNumber<C>
eval(C c)
Evaluate.
-
-
-
Field Detail
-
rfac
protected final RealAlgebraicRing<C extends GcdRingElem<C> & Rational> rfac
-
zero
protected final AlgebraicNumber<C extends GcdRingElem<C> & Rational> zero
-
-
Constructor Detail
-
CoeffToReal
public CoeffToReal(RealAlgebraicRing<C> fac)
-
-
Method Detail
-
eval
public RealAlgebraicNumber<C> eval(C c)
Description copied from interface:UnaryFunctor
Evaluate.- Specified by:
eval
in interfaceUnaryFunctor<C extends GcdRingElem<C> & Rational,RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
- Returns:
- evaluated element.
-
-