PPCKO: Principal Predictive Components for Estimating an Autoregressive Operator
 
Loading...
Searching...
No Matches
Geometry::Mesh1D Class Reference

Public Member Functions

 Mesh1D ()=default
 Default constructor is defaulted.
 
 Mesh1D (Domain1D const &d, unsigned int const &n)
 Constructor for an equaly spaced mesh.
 
 Mesh1D (Geometry::OneDMeshGenerator const &gf)
 Constructor for an variably spaced mesh.
 
void reset (OneDMeshGenerator const &mg)
 Generate mesh (it will destroy old mesh)
 
unsigned int numNodes () const
 Number of nodes.
 
double operator[] (int i) const
 The i-th node.
 
std::vector< double > nodes () const
 The nodes.
 
std::vector< double >::iterator begin ()
 To use the mesh in range based for loop I need begin()
 
std::vector< double >::const_iterator cbegin () const
 
std::vector< double >::iterator end ()
 To use the mesh in range based for loop I need end()
 
std::vector< double >::const_iterator cend () const
 
Domain1D domain () const
 I return a copy of the DOmain1D.
 
double hmin () const
 The max mesh size.
 
double hmax () const
 The max mesh size.
 

Constructor & Destructor Documentation

◆ Mesh1D() [1/2]

Geometry::Mesh1D::Mesh1D ( Domain1D const & d,
unsigned int const & n )

Constructor for an equaly spaced mesh.

Parameters
dA domain
nNumber of intervals (not nodes!)

◆ Mesh1D() [2/2]

Geometry::Mesh1D::Mesh1D ( Geometry::OneDMeshGenerator const & gf)
inline

Constructor for an variably spaced mesh.

Parameters
gfthe policy for generating mesh

Member Function Documentation

◆ domain()

Domain1D Geometry::Mesh1D::domain ( ) const
inline

I return a copy of the DOmain1D.

In case it is needed.

◆ reset()

void Geometry::Mesh1D::reset ( OneDMeshGenerator const & mg)

Generate mesh (it will destroy old mesh)

Parameters
mga mesh generator

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