Class multi_funct_strings (o2scl)

O2scl : Class List

class multi_funct_strings

A multi-dimensional function from a string.

Public Functions

template<class vec_string_t = std::vector<std::string>>
inline multi_funct_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>>
inline void set_function(std::string expr, int nv, vec_string_t &var_arr)

Specify the string and the parameters.

inline virtual ~multi_funct_strings()
inline 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>>
inline double operator()(size_t nv, const vec_t &x)

Compute a function y of nv variables stored in x with parameter pa.

Protected Functions

inline multi_funct_strings()

Protected Attributes

calc_utf8 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 Functions

multi_funct_strings(const multi_funct_strings&)
multi_funct_strings &operator=(const multi_funct_strings&)