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