Class documentation of Concepts

Loading...
Searching...
No Matches

#include <legendre.hh>

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

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

Realvalues_
 Values of the shape functions.
 

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/4]

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

Constructor

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

◆ Legendre() [2/4]

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

Constructor

Parameters
Ppolynomial degree
abscissasabscissas in [-1,1]

◆ Legendre() [3/4]

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/4]

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

Constructor

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

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 >.

◆ 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

◆ 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: