Functions::Monomial< dim > Class Template Reference

Inheritance diagram for Functions::Monomial< dim >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Monomial (const Tensor< 1, dim > &exponents, const unsigned int n_components=1)
virtual double value (const Point< dim > &p, const unsigned int component=0) const
virtual void vector_value (const Point< dim > &p, Vector< double > &values) const
virtual void value_list (const std::vector< Point< dim > > &points, std::vector< double > &values, const unsigned int component=0) const
virtual Tensor< 1, dim > gradient (const Point< dim > &p, const unsigned int component=0) const

Private Attributes

const Tensor< 1, dim > exponents

Detailed Description

template<int dim>
class Functions::Monomial< dim >

A class that represents a function object for a monomial. Monomials are polynomials with only a single term, i.e. in 1-d they have the form $x^\alpha$, in 2-d the form $x_1^{\alpha_1}x_2^{\alpha_2}$, and in 3-d $x_1^{\alpha_1}x_2^{\alpha_2}x_3^{\alpha_3}$. Monomials are therefore described by a $dim$-tuple of exponents. Consequently, the class's constructor takes a Tensor<1,dim> to describe the set of exponents. Most of the time these exponents will of course be integers, but real exponents are of course equally valid.

Author:
Wolfgang Bangerth, 2006

Constructor & Destructor Documentation

template<int dim>
Functions::Monomial< dim >::Monomial ( const Tensor< 1, dim > &  exponents,
const unsigned int  n_components = 1 
)

Constructor. The first argument is explained in the general description of the class. The second argument denotes the number of vector components this object shall represent. All vector components will have the same value.


Member Function Documentation

template<int dim>
virtual double Functions::Monomial< dim >::value ( const Point< dim > &  p,
const unsigned int  component = 0 
) const [virtual]

Function value at one point.

Reimplemented from Function< dim >.

template<int dim>
virtual void Functions::Monomial< dim >::vector_value ( const Point< dim > &  p,
Vector< double > &  values 
) const [virtual]

Return all components of a vector-valued function at a given point.

values shall have the right size beforehand, i.e. n_components.

Reimplemented from Function< dim >.

template<int dim>
virtual void Functions::Monomial< dim >::value_list ( const std::vector< Point< dim > > &  points,
std::vector< double > &  values,
const unsigned int  component = 0 
) const [virtual]

Function values at multiple points.

Reimplemented from Function< dim >.

template<int dim>
virtual Tensor<1,dim> Functions::Monomial< dim >::gradient ( const Point< dim > &  p,
const unsigned int  component = 0 
) const [virtual]

Function gradient at one point.

Reimplemented from Function< dim >.


Member Data Documentation

template<int dim>
const Tensor<1,dim> Functions::Monomial< dim >::exponents [private]

The set of exponents.


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

deal.II documentation generated on Mon Nov 23 22:58:20 2009 by doxygen 1.6.1