GyotoFunctors.h
Go to the documentation of this file.
/*
Copyright 2011 Thibaut Paumard
This file is part of Gyoto.
Gyoto is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Gyoto is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Gyoto. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __GyotoFunctors_H_
#define __GyotoFunctors_H_
namespace Gyoto {
namespace Functor {
class Double_constDoubleArray;
class Double_Double_const;
}
}
class Gyoto::Functor::Double_constDoubleArray
{
public:
virtual ~Double_constDoubleArray();
virtual double operator()(double const data[]) = 0;
};
class Gyoto::Functor::Double_Double_const
{
public:
virtual ~Double_Double_const();
int status;
virtual double operator()(double) const = 0;
double ridders(double from, double to) const;
double secant(double from, double to);
};
#endif
Gyoto::Functor::Double_Double_const
A functor like double (func) (double) const.
Definition GyotoFunctors.h:58
Gyoto::Functor::Double_Double_const::operator()
virtual double operator()(double) const =0
The actual function.
Gyoto::Functor::Double_Double_const::status
int status
Exit status code of "various" methods (at least secant() !).
Definition GyotoFunctors.h:64
Gyoto::Functor::Double_Double_const::ridders
double ridders(double from, double to) const
Ridder's root-finding method applied on operator()().
Gyoto::Functor::Double_Double_const::secant
double secant(double from, double to)
Secant root-finding method applied on operator()().
Gyoto::Functor::Double_constDoubleArray
A functor like double (func) (double const data[]).
Definition GyotoFunctors.h:44
Gyoto::Functor::Double_constDoubleArray::operator()
virtual double operator()(double const data[])=0
The actual function.
Gyoto::Functor
Classes with an operator() method.
Gyoto
Namespace for the Gyoto library.
Definition GyotoAstrobj.h:44