Class mm_funct_strings (o2scl)

O2scl : Class List

class mm_funct_strings

Array of multi-dimensional functions in an array of strings.

Public Functions

template<class vec_string_t = std::vector<std::string>>
inline mm_funct_strings(int nv, vec_string_t &exprs, vec_string_t &var_arr)

Specify the strings.

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

Compute nv functions, y, of nv variables stored in x with parameter pa.

template<class vec_string_t = std::vector<std::string>>
inline void set_function(int nv, vec_string_t &exprs, vec_string_t &var_arr)

Set the functions.

Protected Functions

inline mm_funct_strings()

Protected Attributes

std::vector<calc_utf8<>*> calc

The function parsers.

std::map<std::string, double> vars

External variables to include in the function parsing.

std::vector<std::string> st_forms

The expressions.

std::vector<std::string> st_vars

The variables.

int st_nv

The number of variables.

Private Functions

mm_funct_strings(const mm_funct_strings&)
mm_funct_strings &operator=(const mm_funct_strings&)