Class representing Legendre polynomials evaluated on quadrature points. More...

#include <legendre.hh>

Inheritance diagram for concepts::Legendre:
concepts::ShapeFunction1D< Real > concepts::OutputOperator

Public Member Functions

 Legendre (const int P, const Array< Real > &abscissas)
 Constructor. More...
 
 Legendre (const int P, const QuadratureRule1d &quadrature)
 Constructor. More...
 
 Legendre (const int P, const Real &xP)
 Constructor. More...
 
 Legendre (const int P, const Real *xP, const int NxP)
 Constructor. More...
 
 Legendre (const Legendre &Other)
 
uint n () const
 Returns the number of shape functions. More...
 
uint nP () const
 Returns the number of abscissas (in which the shape functions are evaluated) More...
 
const Realvalues () const
 Returns the values of the shape functions. More...
 
 ~Legendre ()
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream. More...
 
void init (const int P, const Real *xPoints, const int NxP)
 

Protected Attributes

Realvalues_
 Values of the shape functions. More...
 

Private Attributes

uint n_
 Number of shape functions. More...
 
uint nP_
 Number of points in which the shape functions are evaluated. More...
 

Detailed Description

Class representing Legendre polynomials evaluated on quadrature points.

Abcissas will be given on $[-1,1]$.

Author
Robert Gruhlke, 2016

Definition at line 24 of file legendre.hh.

Constructor & Destructor Documentation

◆ Legendre() [1/5]

concepts::Legendre::Legendre ( const int  P,
const QuadratureRule1d quadrature 
)

Constructor.

Parameters
Ppolynomial degree
quadraturequadrature rule with abscissas in [-1,1]

◆ Legendre() [2/5]

concepts::Legendre::Legendre ( const int  P,
const Array< Real > &  abscissas 
)

Constructor.

Parameters
Ppolynomial degree
abscissasabscissas in [-1,1]

◆ Legendre() [3/5]

concepts::Legendre::Legendre ( const int  P,
const Real xP,
const int  NxP 
)

Constructor.

Parameters
Ppolynomial degree
xPpointer to value array in [-1,1] for evaluation
NxPnumber of evaluations per shape function

◆ Legendre() [4/5]

concepts::Legendre::Legendre ( const int  P,
const Real xP 
)

Constructor.

Parameters
Ppolynomial degree
xPvalue in [-1,1] for evaluation

◆ Legendre() [5/5]

concepts::Legendre::Legendre ( const Legendre Other)

◆ ~Legendre()

concepts::Legendre::~Legendre ( )

Member Function Documentation

◆ info()

virtual std::ostream& concepts::Legendre::info ( std::ostream &  os) const
protectedvirtual

Returns information in an output stream.

Implements concepts::ShapeFunction1D< Real >.

◆ init()

void concepts::Legendre::init ( const int  P,
const Real xPoints,
const int  NxP 
)
protected

◆ n()

uint concepts::ShapeFunction1D< Real >::n ( ) const
inlineinherited

Returns the number of shape functions.

Definition at line 35 of file shapefunction.hh.

◆ nP()

uint concepts::ShapeFunction1D< Real >::nP ( ) const
inlineinherited

Returns the number of abscissas (in which the shape functions are evaluated)

Definition at line 38 of file shapefunction.hh.

◆ values()

const Real * concepts::ShapeFunction1D< Real >::values ( ) const
inlineinherited

Returns the values of the shape functions.

Definition at line 40 of file shapefunction.hh.

Member Data Documentation

◆ n_

uint concepts::ShapeFunction1D< Real >::n_
privateinherited

Number of shape functions.

Definition at line 48 of file shapefunction.hh.

◆ nP_

uint concepts::ShapeFunction1D< Real >::nP_
privateinherited

Number of points in which the shape functions are evaluated.

Definition at line 51 of file shapefunction.hh.

◆ values_

Real * concepts::ShapeFunction1D< Real >::values_
protectedinherited

Values of the shape functions.

Definition at line 45 of file shapefunction.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich