|
DGtal 2.0.0
|
#include <DGtal/math/MPolynomial.h>
Data Structures | |
| class | EvalFun |
| class | EvalFun2 |
Public Types | |
| typedef TRing | Ring |
| typedef TOwner | Owner |
| typedef TAlloc | Alloc |
| typedef TX | X |
| typedef MPolynomial< n, Ring, Alloc > | MPolyN |
| Type for the multivariate polynomial. | |
| typedef MPolynomial< n - 1, X, typename std::allocator_traits< Alloc >::template rebind_alloc< X > > | MPolyNM1 |
Public Member Functions | |
| operator MPolyNM1 () const | |
| template<typename XX> | |
| MPolynomialEvaluatorImpl< n - 1, Ring, MPolynomialEvaluatorImpl< n, Ring, Owner, Alloc, X >, Alloc, XX > | operator() (const XX &x) const |
Private Member Functions | |
| MPolynomialEvaluatorImpl (const Owner &owner, const X &evalpoint) | |
| template<typename XX, typename Fun> | |
| void | evaluate (XX &res, const Fun &evalfun) const |
Private Attributes | |
| const Owner & | myOwner |
| const X & | myEvalPoint |
Friends | |
| template<int nn, class TT, class AA, class SS> | |
| class | MPolynomialEvaluator |
| template<int nn, class TT, class HLHL, class AA, class SS> | |
| class | MPolynomialEvaluatorImpl |
Description of template class 'MPolynomialEvaluatorImpl'
Another helper for polynomial evaluation. This template is returned from MPolynomialEvaluator<n, TRing, TAlloc>::operator().
The template parameter TOwner is the type of the "owner" of this template, i.e. either MPolynomialEvaluator<n+1, TRing, TAlloc> or MPolynomialEvaluatorImpl<n+1, TRing, ..., TAlloc>.
This class is a backport from Spielwiese.
Definition at line 194 of file MPolynomial.h.
| typedef TAlloc DGtal::MPolynomialEvaluatorImpl< n, TRing, TOwner, TAlloc, TX >::Alloc |
Definition at line 199 of file MPolynomial.h.
| typedef MPolynomial< n, Ring, Alloc> DGtal::MPolynomialEvaluatorImpl< n, TRing, TOwner, TAlloc, TX >::MPolyN |
Type for the multivariate polynomial.
Definition at line 202 of file MPolynomial.h.
| typedef MPolynomial< n - 1, X, typename std::allocator_traits<Alloc>::template rebind_alloc<X> > DGtal::MPolynomialEvaluatorImpl< n, TRing, TOwner, TAlloc, TX >::MPolyNM1 |
Type for the "child" multivariate polynomial, where the first variable X has been substituted by its value. Note that the ring type has been substituted by the type of the variable (i.e. X).
Definition at line 211 of file MPolynomial.h.
| typedef TOwner DGtal::MPolynomialEvaluatorImpl< n, TRing, TOwner, TAlloc, TX >::Owner |
Definition at line 198 of file MPolynomial.h.
| typedef TRing DGtal::MPolynomialEvaluatorImpl< n, TRing, TOwner, TAlloc, TX >::Ring |
Definition at line 197 of file MPolynomial.h.
| typedef TX DGtal::MPolynomialEvaluatorImpl< n, TRing, TOwner, TAlloc, TX >::X |
Definition at line 200 of file MPolynomial.h.
|
inlineprivate |
|
inlineprivate |
This will be called from a child (i.e. a class of type MPolynomialEvaluatorImpl<n-1, Ring, MPolynomialEvaluator<n,Ring,Owner,Alloc,X>, Alloc, X>) to trigger evaluation.
Definition at line 273 of file MPolynomial.h.
References myOwner.
|
inline |
Allows casting to poly<n-1, S>.
Definition at line 321 of file MPolynomial.h.
References myOwner.
|
inline |
Continues evaluation with the next indeterminant. Functor returining a "child" evaluator implementation.
| x | the next indeterminant. |
Definition at line 340 of file MPolynomial.h.
References MPolynomialEvaluatorImpl.
|
friend |
Definition at line 214 of file MPolynomial.h.
References MPolynomialEvaluator.
Referenced by MPolynomialEvaluator.
|
friend |
Definition at line 217 of file MPolynomial.h.
References MPolynomialEvaluatorImpl.
Referenced by DGtal::MPolynomialEvaluatorImpl< n, TRing, TOwner, TAlloc, TX >::EvalFun< XX, Fun >::EvalFun(), DGtal::MPolynomialEvaluatorImpl< n, TRing, TOwner, TAlloc, TX >::EvalFun2::EvalFun2(), MPolynomialEvaluatorImpl, and operator()().
|
private |
Definition at line 221 of file MPolynomial.h.
Referenced by DGtal::MPolynomialEvaluator< 1, TRing, TAlloc, TX >::MPolynomial< 1, TRing, TAlloc >, and MPolynomialEvaluatorImpl().
|
private |
Definition at line 220 of file MPolynomial.h.
Referenced by evaluate(), MPolynomialEvaluatorImpl(), and operator MPolyNM1().