Class for the x-space interpolation SubGrids.
More...
#include <subgrid.h>
|
| SubGrid (int const &nx, double const &xMin, int const &InterDegree) |
| The SubGrid constructor.
|
|
| SubGrid (std::vector< double > const &xsg, int const &InterDegree) |
| The SubGrid constructor.
|
|
bool | operator== (SubGrid const &sg) const |
| Check whether SubGrids are equal.
|
|
bool | operator!= (SubGrid const &sg) const |
|
int | nx () const |
| return the number of x points
|
|
int | InterDegree () const |
| return the interpolation degree
|
|
double | xMin () const |
| return the minimum node value
|
|
double | xMax () const |
| return the maximum node value
|
|
double | Step () const |
| return the step size of the log grid
|
|
std::vector< double > const & | GetGrid () const |
| return the grid
|
|
std::vector< double > const & | GetLogGrid () const |
| return the log-grid
|
|
void | Print () const |
| print the SubGrid object
|
|
|
int | _nx |
| Number intervals.
|
|
int | _InterDegree |
| Interpolation degree.
|
|
double | _xMin |
| Minumim value of x.
|
|
double | _xMax |
| Maximum value of x (should always be 1)
|
|
double | _Step |
| Step of the logarthmically spaced grid.
|
|
std::vector< double > | _xsg |
| Actual grid.
|
|
std::vector< double > | _lxsg |
| The log of the grid.
|
|
Class for the x-space interpolation SubGrids.
Subgrids are the building blocks of the interpolation procedure. This class defines the "SubGrid" object that includes, apart from the grid itself, also the relevant parameters.
- Examples
- dglap_test.cc, dglap_test_streamlined.cc, gpd_test.cc, grid_test.cc, massiveCF_test.cc, operator_test.cc, qgriddist_test.cc, set_test.cc, structurefunction_cc_test.cc, structurefunction_massive_test.cc, structurefunction_nc_pol_test.cc, structurefunction_nc_test.cc, subgrid_test.cc, and tmd_test.cc.
◆ SubGrid() [1/2]
apfel::SubGrid::SubGrid |
( |
int const & | nx, |
|
|
double const & | xMin, |
|
|
int const & | InterDegree ) |
The SubGrid constructor.
- Parameters
-
nx | number of grid points in x. |
xMin | lower edge x of the grid. |
InterDegree | interpolation degree. |
◆ SubGrid() [2/2]
apfel::SubGrid::SubGrid |
( |
std::vector< double > const & | xsg, |
|
|
int const & | InterDegree ) |
The SubGrid constructor.
- Parameters
-
xsg | a std::vector with the nodes of the grid |
InterDegree | interpolation degree |
◆ GetGrid()
std::vector< double > const & apfel::SubGrid::GetGrid |
( |
| ) |
const |
|
inline |
◆ GetLogGrid()
std::vector< double > const & apfel::SubGrid::GetLogGrid |
( |
| ) |
const |
|
inline |
◆ InterDegree()
int apfel::SubGrid::InterDegree |
( |
| ) |
const |
|
inline |
return the interpolation degree
◆ nx()
int apfel::SubGrid::nx |
( |
| ) |
const |
|
inline |
return the number of x points
◆ operator!=()
bool apfel::SubGrid::operator!= |
( |
SubGrid const & | sg | ) |
const |
◆ operator==()
bool apfel::SubGrid::operator== |
( |
SubGrid const & | sg | ) |
const |
Check whether SubGrids are equal.
- Parameters
-
- Returns
- true/false
◆ Print()
void apfel::SubGrid::Print |
( |
| ) |
const |
|
inline |
◆ Step()
double apfel::SubGrid::Step |
( |
| ) |
const |
|
inline |
return the step size of the log grid
◆ xMax()
double apfel::SubGrid::xMax |
( |
| ) |
const |
|
inline |
return the maximum node value
◆ xMin()
double apfel::SubGrid::xMin |
( |
| ) |
const |
|
inline |
return the minimum node value
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & | os, |
|
|
SubGrid const & | sg ) |
|
friend |
Method which prints SubGrid with cout <<.
◆ _InterDegree
int apfel::SubGrid::_InterDegree |
|
private |
◆ _lxsg
std::vector<double> apfel::SubGrid::_lxsg |
|
private |
◆ _nx
◆ _Step
double apfel::SubGrid::_Step |
|
private |
Step of the logarthmically spaced grid.
◆ _xMax
double apfel::SubGrid::_xMax |
|
private |
Maximum value of x (should always be 1)
◆ _xMin
double apfel::SubGrid::_xMin |
|
private |
◆ _xsg
std::vector<double> apfel::SubGrid::_xsg |
|
private |
The documentation for this class was generated from the following file:
- /Users/vb262523/Codes/apfelxx/inc/apfel/subgrid.h