MathTL
 All Classes Functions Variables Typedefs Enumerations
Public Member Functions | Protected Attributes
MathTL::Recursion Class Reference

#include <recursion.h>

Inheritance diagram for MathTL::Recursion:
MathTL::HomogeneousRecursion MathTL::ChebyshevRecursion MathTL::CosineRecursion MathTL::JacobiRecursion MathTL::MonomialRecursion MathTL::SineRecursion MathTL::LegendreRecursion

List of all members.

Public Member Functions

virtual double a (const unsigned int k) const =0
virtual double b (const unsigned int k) const =0
virtual double c (const unsigned int k) const =0
double operator() (const unsigned int n) const
 evaluation of p_n
double forwardSummation (const Vector< double > &coeffs) const
 (trivial) forward summation
double adjointSummation (const Vector< double > &coeffs) const
 adjoint summation

Protected Attributes

double p0_
 first two entries of the recursion
double p1_

Detailed Description

base class for inhomogeneous three-term recursions of the form p_k = a_k * p_{k-1} + b_k * p_{k-2} + c_k, k=2,3,...


Member Function Documentation

double MathTL::Recursion::adjointSummation ( const Vector< double > &  coeffs) const

adjoint summation

adjoint summation of {k=0}^n * p_k remarks:

  • stable for dominant solutions of the three-term recursion
  • potentially unstable for minimal solutions

The documentation for this class was generated from the following files:
 All Classes Functions Variables Typedefs Enumerations