#include <grid.h>
Public Member Functions | |
Grid () | |
Grid (const Matrix< double > &gridx, const Matrix< double > &gridy) | |
Grid (const Grid< 1 > &gridx, const Grid< 1 > &gridy) | |
Grid (const Point< 2 > &a, const Point< 2 > &b, const unsigned N_x, const unsigned N_y) | |
Grid (const Point< 2 > &a, const Point< 2 > &b, const unsigned int N) | |
unsigned int | size () const |
Grid< 2 > & | operator= (const Grid< 2 > &grid) |
void | matlab_output (std::ostream &os) const |
void | octave_output (std::ostream &os) const |
Protected Attributes | |
Matrix< double > | gridx_ |
Matrix< double > | gridy_ |
specialization of Grid to two space dimensions: 2-dimensional grids (quad-meshes) consist of 2 matrices x and y, holding the x- and y-coordinates of the mesh points
MathTL::Grid< 2 >::Grid | ( | ) |
default constructor: empty grid
MathTL::Grid< 2 >::Grid | ( | const Matrix< double > & | gridx, |
const Matrix< double > & | gridy | ||
) |
construct a 2D grid from two matrices
MathTL::Grid< 2 >::Grid | ( | const Grid< 1 > & | gridx, |
const Grid< 1 > & | gridy | ||
) |
construct a 2D tensor product grid from two 1D Grids
MathTL::Grid< 2 >::Grid | ( | const Point< 2 > & | a, |
const Point< 2 > & | b, | ||
const unsigned | N_x, | ||
const unsigned | N_y | ||
) |
construct an equidistant 2D grid with (N_x+1)*(N_y+1) points
MathTL::Grid< 2 >::Grid | ( | const Point< 2 > & | a, |
const Point< 2 > & | b, | ||
const unsigned int | N | ||
) |
construct an equidistant 2D grid with (N+1)*(N+1) points
void MathTL::Grid< 2 >::matlab_output | ( | std::ostream & | os | ) | const |
Matlab output of the grid onto a stream
Reimplemented in MathTL::SampledMapping< 2, C >.
void MathTL::Grid< 2 >::octave_output | ( | std::ostream & | os | ) | const |
Octave-compatible output of the grid onto a stream
Reimplemented in MathTL::SampledMapping< 2, C >.
Grid< 2 > & MathTL::Grid< 2 >::operator= | ( | const Grid< 2 > & | grid | ) |
assignment operator
unsigned int MathTL::Grid< 2 >::size | ( | ) | const [inline] |
number of grid points
Matrix<double> MathTL::Grid< 2 >::gridx_ [protected] |
internal storage for the grid points (a 2D array would be sufficient, which is not available at the moment)