NGSolve  4.9
Public Member Functions | Protected Attributes
ngfem::RecPol Class Reference

Generic recursive polynomial. More...

#include <generic_recpol.hpp>

Inheritance diagram for ngfem::RecPol:
ngfem::RecPolJacobi ngfem::RecPolLegendre ngfem::RecPolMonomial

List of all members.

Public Member Functions

 RecPol (int n)
 init coefficient array
int Order () const
 maximal order
template<class S , class T >
void Evaluate (int n, S x, T &values) const
 evaluate rec pols up to order n
void MultBubble ()
 Multiply polynomial with the bubble $1-x^2$.
void MultLinear (double a, double b)
 Multiply polynomial with the linear factor $a + bx$.
void Scale (double s)
double A (int i) const
double B (int i) const
double C (int i) const

Protected Attributes

Array< double[3] > coefs

Detailed Description

Generic recursive polynomial.

{verbatim} p_0 = a_0 p_1 = (a_1 + b_1 x) p_0 p_i = (a_i + b_i x) p_{i-1} + c_i p_{i-2} {verbatim}


Member Function Documentation

Multiply polynomial with the bubble $1-x^2$.

p --> q q_0 = 1, q_1 = x q_i = (1-x^2) p_{i-2}

void ngfem::RecPol::MultLinear ( double  a,
double  b 
)

Multiply polynomial with the linear factor $a + bx$.

p --> q q_0 = 1 q_i = (a + b x) p_i-1


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