Package edu.jas.root
Class CoeffToReAlg<C extends GcdRingElem<C> & Rational>
- java.lang.Object
-
- edu.jas.root.CoeffToReAlg<C>
-
- All Implemented Interfaces:
UnaryFunctor<C,RealAlgebraicNumber<C>>
class CoeffToReAlg<C extends GcdRingElem<C> & Rational> extends java.lang.Object implements UnaryFunctor<C,RealAlgebraicNumber<C>>
Coefficient to algebraic functor.
-
-
Field Summary
Fields Modifier and Type Field Description protected RealAlgebraicRing<C>
afac
protected GenPolynomial<C>
zero
-
Constructor Summary
Constructors Constructor Description CoeffToReAlg(RealAlgebraicRing<C> fac)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RealAlgebraicNumber<C>
eval(C c)
Evaluate.
-
-
-
Field Detail
-
afac
protected final RealAlgebraicRing<C extends GcdRingElem<C> & Rational> afac
-
zero
protected final GenPolynomial<C extends GcdRingElem<C> & Rational> zero
-
-
Constructor Detail
-
CoeffToReAlg
public CoeffToReAlg(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.
-
-