Class ode_funct_strings (o2scl)

O2scl : Class List

class ode_funct_strings

One-dimensional function from strings.

Public Functions

template<class vec_string_t = std::vector<std::string>>
inline ode_funct_strings(size_t nv, vec_string_t &exprs, vec_string_t &funcs, std::string var)

Specify the string and the parameters.

inline virtual ~ode_funct_strings()
template<class vec_string_t = std::vector<std::string>>
inline void set_function(size_t nv, vec_string_t &exprs, vec_string_t &funcs, std::string var)

Specify the string and the parameters.

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_y_t = boost::numeric::ublas::vector<double>, class vec_dydx_t = vec_y_t>
inline int operator()(double x, size_t nv, const vec_y_t &y, vec_dydx_t &dydx)

Protected Functions

inline ode_funct_strings()

Protected Attributes

std::vector<o2scl::calc_utf8<>> calc

The function parser.

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

List of variables and values.

size_t st_nv

The number of variables.

std::vector<std::string> st_forms

The expressions.

std::string st_var

The variables.

std::vector<std::string> st_funcs

The function names.

Private Functions

ode_funct_strings(const ode_funct_strings&)
ode_funct_strings &operator=(const ode_funct_strings&)