|
| SparseGrid (const std::string &funcl, std::vector< Value * > args, const std::vector< std::string > &gmin, const std::vector< std::string > &gmax, const std::vector< unsigned > &nbin, bool dospline, bool usederiv) |
|
index_t | getSize () const |
| get grid size More...
|
|
index_t | getMaxSize () const |
|
double | getValue (index_t index) const |
| get grid value More...
|
|
double | getValueAndDerivatives (index_t index, std::vector< double > &der) const |
| get grid value and derivatives More...
|
|
void | setValue (index_t index, double value) |
| set grid value More...
|
|
void | setValueAndDerivatives (index_t index, double value, std::vector< double > &der) |
| set grid value and derivatives More...
|
|
void | addValue (index_t index, double value) |
| add to grid value More...
|
|
void | addValueAndDerivatives (index_t index, double value, std::vector< double > &der) |
| add to grid value and derivatives More...
|
|
void | writeToFile (OFile &) |
| dump grid on file More...
|
|
virtual | ~SparseGrid () |
|
void | Init (const std::string &funcl, const std::vector< std::string > &names, const std::vector< std::string > &gmin, const std::vector< std::string > &gmax, const std::vector< unsigned > &nbin, bool dospline, bool usederiv, bool doclear, const std::vector< bool > &isperiodic, const std::vector< std::string > &pmin, const std::vector< std::string > &pmax) |
| this is the real initializator More...
|
|
std::vector< std::string > | getMin () const |
| get lower boundary More...
|
|
std::vector< std::string > | getMax () const |
| get upper boundary More...
|
|
std::vector< double > | getDx () const |
| get bin size More...
|
|
double | getBinVolume () const |
| get bin volume More...
|
|
std::vector< unsigned > | getNbin () const |
| get number of bins More...
|
|
std::vector< bool > | getIsPeriodic () const |
| get if periodic More...
|
|
unsigned | getDimension () const |
| get grid dimension More...
|
|
std::vector< std::string > | getArgNames () const |
| get argument names of this grid More...
|
|
std::vector< unsigned > | getIndices (index_t index) const |
| methods to handle grid indices More...
|
|
std::vector< unsigned > | getIndices (const std::vector< double > &x) const |
|
index_t | getIndex (const std::vector< unsigned > &indices) const |
|
index_t | getIndex (const std::vector< double > &x) const |
|
std::vector< double > | getPoint (index_t index) const |
|
std::vector< double > | getPoint (const std::vector< unsigned > &indices) const |
|
std::vector< double > | getPoint (const std::vector< double > &x) const |
|
void | getPoint (index_t index, std::vector< double > &point) const |
| faster versions relying on preallocated vectors More...
|
|
void | getPoint (const std::vector< unsigned > &indices, std::vector< double > &point) const |
|
void | getPoint (const std::vector< double > &x, std::vector< double > &point) const |
|
std::vector< index_t > | getNeighbors (index_t index, const std::vector< unsigned > &neigh) const |
| get neighbors More...
|
|
std::vector< index_t > | getNeighbors (const std::vector< unsigned > &indices, const std::vector< unsigned > &neigh) const |
|
std::vector< index_t > | getNeighbors (const std::vector< double > &x, const std::vector< unsigned > &neigh) const |
|
void | writeHeader (OFile &file) |
| write header for grid file More...
|
|
virtual double | getValue (const std::vector< unsigned > &indices) const |
|
virtual double | getValue (const std::vector< double > &x) const |
|
virtual double | getMinValue () const |
| get minimum value More...
|
|
virtual double | getMaxValue () const |
| get maximum value More...
|
|
virtual double | getValueAndDerivatives (const std::vector< unsigned > &indices, std::vector< double > &der) const |
|
virtual double | getValueAndDerivatives (const std::vector< double > &x, std::vector< double > &der) const |
|
virtual void | setValue (const std::vector< unsigned > &indices, double value) |
|
virtual void | setValueAndDerivatives (const std::vector< unsigned > &indices, double value, std::vector< double > &der) |
|
virtual void | addValue (const std::vector< unsigned > &indices, double value) |
|
virtual void | addValueAndDerivatives (const std::vector< unsigned > &indices, double value, std::vector< double > &der) |
|
virtual void | scaleAllValuesAndDerivatives (const double &scalef) |
| Scale all grid values and derivatives by a constant factor. More...
|
|
virtual void | logAllValuesAndDerivatives (const double &scalef) |
| Takes the scalef times the logarithm of all grid values and derivatives. More...
|
|
virtual void | setMinToZero () |
| Set the minimum value of the grid to zero and translates accordingly. More...
|
|
virtual void | applyFunctionAllValuesAndDerivatives (double(*func)(double val), double(*funcder)(double valder)) |
| apply function: takes pointer to function that accepts a double and apply More...
|
|
void | addKernel (const KernelFunctions &kernel) |
| add a kernel function to the grid More...
|
|
void | writeCubeFile (OFile &) |
| dump grid to gaussian cube file More...
|
|
Grid | project (const std::vector< std::string > &proj, WeightBase *ptr2obj) |
| project a high dimensional grid onto a low dimensional one: this should be changed at some time to enable many types of weighting More...
|
|
void | projectOnLowDimension (double &val, std::vector< int > &varHigh, WeightBase *ptr2obj) |
|
void | setOutputFmt (std::string ss) |
| set output format More...
|
|
double | integrate (std::vector< unsigned > &npoints) |
| Integrate the function calculated on the grid. More...
|
|