DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions
DGtal::Xe_kComputer< n, Ring, Alloc > Class Template Reference

#include <MPolynomial.h>

Public Member Functions

 Xe_kComputer ()
MPolynomial< n, Ring, Alloc > get (unsigned int k, unsigned int e)

Detailed Description

template<int n, typename Ring, typename Alloc>
class DGtal::Xe_kComputer< n, Ring, Alloc >

Creates a monomial X_k^e

Parameters:
kthe index of the variable (X_k)
ethe exponent for X_k
Returns:
the 1-variable polynomial X_0^e
Template Parameters:
nthe number of indetermionates.
Ringthe type for the coefficent ring of the polynomial.
Allocthe type of allocator.

Definition at line 1606 of file MPolynomial.h.


Constructor & Destructor Documentation

template<int n, typename Ring , typename Alloc >
DGtal::Xe_kComputer< n, Ring, Alloc >::Xe_kComputer ( )
inline

Definition at line 1609 of file MPolynomial.h.

{}

Member Function Documentation

template<int n, typename Ring , typename Alloc >
MPolynomial<n, Ring, Alloc> DGtal::Xe_kComputer< n, Ring, Alloc >::get ( unsigned int  k,
unsigned int  e 
)
inline

Definition at line 1612 of file MPolynomial.h.

References DGtal::MPolynomial< n, TRing, TAlloc >::normalize().

{
if ( k == 0 )
p[e] = Xe_kComputer<n-1,Ring,Alloc>().get( k-1, e );
else
p[0] = Xe_kComputer<n-1,Ring,Alloc>().get( k-1, e );
p.normalize();
//std::cerr << "Xe_k(" << k << "," << e << ")=" << p << std::endl;
return p;
}

The documentation for this class was generated from the following file: