Public Member Functions | Protected Attributes | Private Member Functions | List of all members
o2scl::multi_funct11_strings Class Reference

A multi-dimensional function from a string. More...

#include <multi_funct.h>

Public Member Functions

template<class vec_string_t = std::vector<std::string>>
 multi_funct11_strings (std::string expr, int nv, vec_string_t &var_arr)
 Specify the string and the parameters.
 
template<class vec_string_t = std::vector<std::string>>
void set_function (std::string expr, int nv, vec_string_t &var_arr)
 Specify the string and the parameters.
 
int set_parm (std::string name, double val)
 Set the values of the auxilliary parameters that were specified in parms in the constructor.
 
template<class vec_t = boost::numeric::ublas::vector<double>>
double operator() (size_t nv, const vec_t &x)
 Compute a function y of nv variables stored in x with parameter pa.
 

Protected Attributes

calculator calc
 The function parser.
 
std::map< std::string, double > vars
 External variables to include in the function parsing.
 
int st_nv
 The number of variables.
 
std::string st_funct
 The function string.
 
std::vector< std::string > st_vars
 The variable string.
 

Private Member Functions

 multi_funct11_strings (const multi_funct11_strings &)
 
multi_funct11_stringsoperator= (const multi_funct11_strings &)
 

Detailed Description

Definition at line 49 of file multi_funct.h.


The documentation for this class was generated from the following file:

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