o2scl::interp2_base< vec_t, mat_t > Class Template Referenceabstract

Two-dimensional interpolation base class [abstract]. More...

#include <interp2.h>

Inheritance diagram for o2scl::interp2_base< vec_t, mat_t >:

Public Member Functions

virtual double eval (double x, double y) const =0
Perform the 2-d interpolation.

virtual double operator() (double x, double y) const
Perform the 2-d interpolation.

virtual double deriv_x (double x, double y) const =0
Compute the partial derivative in the x-direction.

virtual double deriv_xx (double x, double y) const =0
Compute the partial second derivative in the x-direction.

virtual double integ_x (double x0, double x1, double y) const =0
Compute the integral in the x-direction between x=x0 and x=x1.

virtual double deriv_y (double x, double y) const =0
Compute the partial derivative in the y-direction.

virtual double deriv_yy (double x, double y) const =0
Compute the partial second derivative in the y-direction.

virtual double integ_y (double x, double y0, double y1) const =0
Compute the integral in the y-direction between y=y0 and y=y1.

virtual double deriv_xy (double x, double y) const =0
Compute the mixed partial derivative .

virtual double eval_gen (int ix, int iy, double x0, double x1, double y0, double y1) const =0
Compute a general interpolation result. More...

Protected Attributes

size_t nx
The number of x grid points.

size_t ny
The number of y grid points.

vec_t * xfun
The x grid.

vec_t * yfun
The y grid.

mat_t * datap
The data.

Private Member Functions

interp2_base (const interp2_base< vec_t, mat_t > &)

interp2_base< vec_t, mat_t > & operator= (const interp2_base< vec_t, mat_t > &)

Detailed Description

template<class vec_t = boost::numeric::ublas::vector<double>, class mat_t = boost::numeric::ublas::matrix<double>> class o2scl::interp2_base< vec_t, mat_t >

Definition at line 40 of file interp2.h.

◆ eval_gen()

template<class vec_t = boost::numeric::ublas::vector<double>, class mat_t = boost::numeric::ublas::matrix<double>>
 virtual double o2scl::interp2_base< vec_t, mat_t >::eval_gen ( int ix, int iy, double x0, double x1, double y0, double y1 ) const
pure virtual

This computes

for and with the notation

and the value of is ignored when and the value of is ignored when .

The documentation for this class was generated from the following file:
• /home/awsteiner/wcs/o2scl/src/other/interp2.h

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).