Package edu.jas.poly
Class PolyToAlg<C extends GcdRingElem<C>>
- java.lang.Object
-
- edu.jas.poly.PolyToAlg<C>
-
- All Implemented Interfaces:
UnaryFunctor<GenPolynomial<C>,AlgebraicNumber<C>>
class PolyToAlg<C extends GcdRingElem<C>> extends java.lang.Object implements UnaryFunctor<GenPolynomial<C>,AlgebraicNumber<C>>
Polynomial to algebriac functor.
-
-
Field Summary
Fields Modifier and Type Field Description protected AlgebraicNumberRing<C>
afac
-
Constructor Summary
Constructors Constructor Description PolyToAlg(AlgebraicNumberRing<C> fac)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AlgebraicNumber<C>
eval(GenPolynomial<C> c)
Evaluate.
-
-
-
Field Detail
-
afac
protected final AlgebraicNumberRing<C extends GcdRingElem<C>> afac
-
-
Constructor Detail
-
PolyToAlg
public PolyToAlg(AlgebraicNumberRing<C> fac)
-
-
Method Detail
-
eval
public AlgebraicNumber<C> eval(GenPolynomial<C> c)
Description copied from interface:UnaryFunctor
Evaluate.- Specified by:
eval
in interfaceUnaryFunctor<GenPolynomial<C extends GcdRingElem<C>>,AlgebraicNumber<C extends GcdRingElem<C>>>
- Returns:
- evaluated element.
-
-