DGtal 2.0.0
|
#include <DGtal/math/MPolynomial.h>
Public Types | |
typedef TRing | Ring |
typedef TAlloc | Alloc |
typedef TX | X |
typedef MPolynomial< 1, Ring, Alloc > | MPoly1 |
typedef MPolynomial< n, Ring, Alloc > | MPolyN |
typedef MPolynomial< n - 1, X, typename std::allocator_traits< Alloc >::template rebind_alloc< X > > | MPolyNM1 |
Public Member Functions | |
operator X () const | |
X | operator() () const |
operator MPolyNM1 () const |
Private Member Functions | |
MPolynomialEvaluator (const MPoly1 &poly, const X &evalpoint) | |
void | evaluate (XX &res, const Fun &evalfun) const |
Private Attributes | |
const MPoly1 & | myPoly |
The polynomial in question. | |
const X & | myEvalPoint |
The evaluation point. |
Friends | |
class | MPolynomial< 1, TRing, TAlloc > |
class | MPolynomial< n, TRing, TAlloc > |
class | MPolynomialEvaluatorImpl |
The top level polynomial evaluation class, in case n = 1, i.e. does direct evaluation.
This class is a backport from Spielwiese.
Definition at line 357 of file MPolynomial.h.
typedef TAlloc DGtal::MPolynomialEvaluator< 1, TRing, TAlloc, TX >::Alloc |
Definition at line 362 of file MPolynomial.h.
typedef MPolynomial< 1, Ring, Alloc > DGtal::MPolynomialEvaluator< 1, TRing, TAlloc, TX >::MPoly1 |
Definition at line 364 of file MPolynomial.h.
typedef MPolynomial< n, Ring, Alloc > DGtal::MPolynomialEvaluator< n, TRing, TAlloc, TX >::MPolyN |
Definition at line 423 of file MPolynomial.h.
typedef MPolynomial< n - 1, X, typename std::allocator_traits<Alloc>::template rebind_alloc<X> > DGtal::MPolynomialEvaluator< n, TRing, TAlloc, TX >::MPolyNM1 |
Definition at line 425 of file MPolynomial.h.
typedef TRing DGtal::MPolynomialEvaluator< 1, TRing, TAlloc, TX >::Ring |
Definition at line 361 of file MPolynomial.h.
typedef TX DGtal::MPolynomialEvaluator< 1, TRing, TAlloc, TX >::X |
Definition at line 363 of file MPolynomial.h.
|
inlineprivate |
Definition at line 371 of file MPolynomial.h.
References myEvalPoint, and myPoly.
|
inlineprivate |
Will be called by "child". Evaluates the polynomial into an element of XX (which must not necessarily be X, it can also be MPolynomial<k, X> for some k < n - 1) using the given functor to evaluate the coefficients, which are of type MPolynomial<n-1, Ring>.
Definition at line 443 of file MPolynomial.h.
|
inline |
Evaluate to polynomial of type MPolynomial< n-1, X>.
Definition at line 458 of file MPolynomial.h.
|
inline |
Casting to X is done by evaluation in myEvalPoint.
Definition at line 380 of file MPolynomial.h.
References myEvalPoint, and myPoly.
|
inline |
Evaluates and returns value in X.
Definition at line 396 of file MPolynomial.h.
|
friend |
Definition at line 303 of file MPolynomial.h.
References DGtal::MPolynomialEvaluatorImpl< n, TRing, TOwner, TAlloc, TX >::myEvalPoint, DGtal::MPolynomialEvaluatorImpl< n, TRing, TOwner, TAlloc, TX >::EvalFun2::myOwner, DGtal::MPolynomial< n, TRing, TAlloc >::myValue, and DGtal::IVector< T, TAlloc, usePointers >::size().
|
friend |
Definition at line 396 of file MPolynomial.h.
|
friend |
Definition at line 417 of file MPolynomial.h.
|
private |
The evaluation point.
Definition at line 368 of file MPolynomial.h.
Referenced by MPolynomialEvaluator(), and operator X().
|
private |
The polynomial in question.
Definition at line 367 of file MPolynomial.h.
Referenced by MPolynomialEvaluator(), and operator X().