MathTL
 All Classes Functions Variables Typedefs Enumerations
Public Member Functions | Protected Attributes
MathTL::Grid< 1 > Class Template Reference

#include <grid.h>

Inheritance diagram for MathTL::Grid< 1 >:
MathTL::SampledMapping< 1, C >

List of all members.

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_

Detailed Description

template<>
class MathTL::Grid< 1 >

specialization of Grid to one space dimension: 1-dimensional grids are just vectors holding the mesh points.


Constructor & Destructor Documentation

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


Member Function Documentation

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


Member Data Documentation

Array1D<double> MathTL::Grid< 1 >::grid_ [protected]

internal storage for the grid points


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