DGtal
1.5.beta
|
#include <DGtal/math/MPolynomial.h>
Public Types | |
typedef MPolynomial< n, Ring, Alloc > | MPolyN |
Type for polynomial with n variable in the ring Ring. More... | |
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 first indeterminate. The coefficients of the first indeterminate are left untouched.
Specialization of MPolynomialDerivativeComputer to the first indeterminate.
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 TRing, for example std::allocator<TRing>; 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 1852 of file MPolynomial.h.
typedef MPolynomial<n, Ring, Alloc> DGtal::MPolynomialDerivativeComputer< 0, n, Ring, Alloc >::MPolyN |
Type for polynomial with n variable in the ring Ring.
Definition at line 1856 of file MPolynomial.h.
|
inlinestatic |
Computes the derivative of src with respect to X_0 and puts it in dest.
src | any polynomial |
dest | (returns) the polynomial d/dX_0(src). |
Definition at line 1866 of file MPolynomial.h.
References DGtal::MPolynomial< n, TRing, TAlloc >::myValue, DGtal::MPolynomial< n, TRing, TAlloc >::normalize(), and DGtal::IVector< T, TAlloc, usePointers >::resize().