scalar_field.hpp#

struct ScalarField#

Wrapper that encapsulates a matrix description of a scalar field together with the limits of the space it represents

Space limits

double x_min#

minimum x

double x_max#

maximum x

double y_min#

minimum y

double y_max#

maximum y

Public Functions

inline ScalarField(Matrix2D<double> &_M, double _x_min, double _x_max, double _y_min, double _y_max)#

Constructor

inline double operator()(int i, int j) const#

Propagate the matrix access operator

Parameters
  • i – first index

  • j – second index

Returns

M(i, j)

Public Members

Matrix2D<double> &M#

Matrix description of the field.