All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | Private Member Functions
o2scl::multi_funct11_strings< vec_t > Class Template Reference

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

Detailed Description

template<class vec_t = boost::numeric::ublas::vector<double>>
class o2scl::multi_funct11_strings< vec_t >

Definition at line 50 of file multi_funct.h.

#include <multi_funct.h>

Public Member Functions

 multi_funct11_strings (std::string formula, int nv, std::string vars, int np=0, std::string parms="")
 Specify the string and the parameters.
 
int set_function (std::string formula, int nv, std::string vars, int np=0, std::string parms="")
 Specify the string and the parameters.
 
int set_parms (const vec_t &p)
 Set the values of the auxilliary parameters that were specified in parms in the constructor.
 
virtual double operator() (size_t nv, const vec_t &x)
 Compute a function y of nv variables stored in x with parameter pa.
 

Protected Attributes

FunctionParser fpw
 The object for evaluating strings.
 
int st_np
 The number of parameters.
 
int st_nv
 The number of variables.
 
double * arr
 Storage for the parameters for fpw.
 
std::string st_form
 The formula string.
 
std::string st_vars
 The variable string.
 
std::string st_parms
 The parameter string.
 

Private Member Functions

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

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).
Hosted at Get Object-oriented Scientific Computing
Lib at SourceForge.net. Fast, secure and Free Open Source software
downloads..