One-dimensional function from a string. More...
For example,
will print out the area of circles having radii between 1 and 2.
#include <funct.h>
Public Types | |
typedef boost::numeric::ublas::vector < double > | ubvector |
Public Member Functions | |
funct11_string (std::string formula, std::string var, int np=0, std::string parms="") | |
Specify the string and the parameters. | |
int | set_function (std::string formula, std::string var, int np=0, std::string parms="") |
Specify the string and the parameters. | |
template<class vec_t > | |
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() (double x) const |
Compute the function at point x and return the result. | |
Protected Attributes | |
FunctionParser | fpw |
The object for evaluating strings. | |
size_t | st_np |
The number of parameters. | |
ubvector | arr |
Storage for the fpw call. | |
std::string | st_form |
The formula. | |
std::string | st_var |
The variables. | |
std::string | st_parms |
The parameters. | |
Private Member Functions | |
funct11_string (const funct11_string &) | |
funct11_string & | operator= (const funct11_string &) |
Documentation generated with Doxygen. Provided under the
GNU Free Documentation License (see License Information).
Hosted at
.