Public Member Functions | Static Public Member Functions | Static Private Member Functions

Polynomials::Monomial< number > Class Template Reference

Inheritance diagram for Polynomials::Monomial< number >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Monomial (const unsigned int n, const double coefficient=1.)

Static Public Member Functions

static std::vector< Polynomial
< number > > 
generate_complete_basis (const unsigned int degree)

Static Private Member Functions

static std::vector< number > make_vector (unsigned int n, const double coefficient)

Detailed Description

template<typename number>
class Polynomials::Monomial< number >

Class generates Polynomial objects representing a monomial of degree n, that is, the function $x^n$.

Author:
Guido Kanschat, 2004

Definition at line 311 of file polynomial.h.


Constructor & Destructor Documentation

template<typename number >
Polynomials::Monomial< number >::Monomial ( const unsigned int  n,
const double  coefficient = 1. 
)

Constructor, taking the degree of the monomial and an optional coefficient as arguments.


Member Function Documentation

template<typename number >
static std::vector<Polynomial<number> > Polynomials::Monomial< number >::generate_complete_basis ( const unsigned int  degree ) [static]

Return a vector of Monomial objects of degree zero through degree, which then spans the full space of polynomials up to the given degree. This function may be used to initialize the TensorProductPolynomials and PolynomialSpace classes.

template<typename number >
static std::vector<number> Polynomials::Monomial< number >::make_vector ( unsigned int  n,
const double  coefficient 
) [static, private]

Needed by constructor.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

deal.II documentation generated on Fri Feb 3 2012 06:04:16 by doxygen 1.7.2