DGtal 1.4.0
|
#include <DGtal/math/MPolynomial.h>
Public Types | |
typedef MPolynomial< n, Ring, Alloc > | MPolyN |
Type for polynomial with n variable in the ring Ring. | |
Static Public Member Functions | |
static void | computeDerivative (const MPolyN &src, MPolyN &dest) |
Utility class for computing the derivative of a given polynomial with respect to the N-th indeterminate, N > 0. Uses MPolynomialDerivativeComputer<N-1, n-1, T, Alloc> to partially derive the coefficients of the first indeterminate.
N | the variable used for derivation. |
n | the number of variables or indeterminates. |
Ring | the type chosen for the polynomial, defines also the type of the coefficents (generally int, float or double). |
Alloc | is an allocator for Ring, for example std::allocator<Ring>; this is also the default parameter. Usually this parameter does not needs to be changed. |
This class is a backport from Spielwiese.
Definition at line 1897 of file MPolynomial.h.
typedef MPolynomial<n, Ring, Alloc> DGtal::MPolynomialDerivativeComputer< N, n, Ring, Alloc >::MPolyN |
Type for polynomial with n variable in the ring Ring.
Definition at line 1901 of file MPolynomial.h.
|
inlinestatic |
Computes the derivative of src with respect to X_N and puts it in dest.
src | any polynomial |
dest | (returns) the polynomial d/dX_N(src). |
Definition at line 1911 of file MPolynomial.h.
References DGtal::MPolynomialDerivativeComputer< N, n, Ring, Alloc >::computeDerivative(), DGtal::MPolynomial< n, TRing, TAlloc >::myValue, DGtal::MPolynomial< n, TRing, TAlloc >::normalize(), and DGtal::IVector< T, TAlloc, usePointers >::resize().
Referenced by DGtal::MPolynomialDerivativeComputer< N, n, Ring, Alloc >::computeDerivative(), and DGtal::derivative().