funct Class Template Reference

One-dimensional function [abstract base]. More...

#include <funct.h>

Inheritance diagram for funct:

funct_cmfptr funct_cmfptr_noerr funct_cmfptr_nopar funct_fptr funct_fptr_noerr funct_fptr_nopar funct_mfptr funct_mfptr_noerr funct_mfptr_nopar

Detailed Description

template<class param_t>
class funct< param_t >

One-dimensional function [abstract base].

This class generalizes a function y(x).

This class is one of a large number of function object classes in O2scl designed to provide a mechanism for the user to supply functions to solvers, minimizers, integrators, etc. See Function Objects for a general description.

Definition at line 44 of file funct.h.


Public Member Functions

virtual int operator() (double x, double &y, param_t &pa)=0
 Compute the function at point x, with result y.
virtual double operator() (double x, param_t &pa)
 Compute the function at point x, returning the result.

The documentation for this class was generated from the following file:

Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.

Project hosting provided by SourceForge.net Logo, O2scl Sourceforge Project Page