#include <grid.h>
Public Member Functions | |
Grid () | |
Grid (const Array1D< double > &grid) | |
Grid (const double a, const double b, const unsigned int N) | |
unsigned int | size () const |
const Array1D< double > & | points () const |
void | matlab_output (std::ostream &os) const |
Protected Attributes | |
Array1D< double > | grid_ |
specialization of Grid to one space dimension: 1-dimensional grids are just vectors holding the mesh points.
MathTL::Grid< 1 >::Grid | ( | ) |
default constructor: empty grid
MathTL::Grid< 1 >::Grid | ( | const Array1D< double > & | grid | ) |
construct a 1D grid from an array of 1D points
MathTL::Grid< 1 >::Grid | ( | const double | a, |
const double | b, | ||
const unsigned int | N | ||
) |
construct an equidistant 1D grid with N+1 points
void MathTL::Grid< 1 >::matlab_output | ( | std::ostream & | os | ) | const |
Matlab output of the grid onto a stream
Reimplemented in MathTL::SampledMapping< 1, C >.
const Array1D<double>& MathTL::Grid< 1 >::points | ( | ) | const [inline] |
reading access to the grid points
unsigned int MathTL::Grid< 1 >::size | ( | ) | const [inline] |
number of grid points
Array1D<double> MathTL::Grid< 1 >::grid_ [protected] |
internal storage for the grid points