MathTL
 All Classes Functions Variables Typedefs Enumerations
Public Member Functions
MathTL::Grid< DIM > Class Template Reference

#include <grid.h>

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

List of all members.

Public Member Functions

 Grid ()
unsigned int size () const
void matlab_output (std::ostream &os) const

Detailed Description

template<unsigned int DIM>
class MathTL::Grid< DIM >

Base class for n-dimensional rectangular grids in the style of Matlab. There, rectangular grids are the core ingredients for plotting functions from n-D to m-D. A 1-dimensional grid is just a vector x holding the mesh points. A 2-dimensional grid (a so-called quad-mesh) consists of 2 matrices x and y, holding the x- and y-coordinates of the mesh points.

reference: Matlab/Octave help for the command 'surf'


Constructor & Destructor Documentation

template<unsigned int DIM>
MathTL::Grid< DIM >::Grid ( ) [inline]

default constructor: empty grid


Member Function Documentation

template<unsigned int DIM>
void MathTL::Grid< DIM >::matlab_output ( std::ostream &  os) const

Matlab output of the grid onto a stream

Reimplemented in MathTL::SampledMapping< DIM, C >.

template<unsigned int DIM>
unsigned int MathTL::Grid< DIM >::size ( ) const

number of grid points


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