#include <FunctionalAdaptor.hpp>

Public Member Functions | |
| FunctionalAdaptor (functional_t &functional) | |
| ublas::vector< float_t > & | current_argument () |
| void | set_argument () |
| float_t | current_energy () const |
| std::size_t | dimension () const |
Friends | |
| class | DifferentiableFunctionalAdaptor< functional_t > |
| ublas::vector<float_t>& imaging::FunctionalAdaptor< functional_t >::current_argument | ( | ) | [inline, virtual] |
Access the current argument of the energy. In general the user should not resize the current argument!
Implements imaging::EnergyInterface.
| void imaging::FunctionalAdaptor< functional_t >::set_argument | ( | ) | [inline, virtual] |
Compute the energy value corresponding to the current argument. This is where the main work of the energy evaluation should be done.
Implements imaging::EnergyInterface.
| float_t imaging::FunctionalAdaptor< functional_t >::current_energy | ( | ) | const [inline, virtual] |
Returns the current energy. This function should not actually compute the current energy but return the cached result of the last call to set_argument()!
Implements imaging::EnergyInterface.
| std::size_t imaging::FunctionalAdaptor< functional_t >::dimension | ( | ) | const [inline, virtual] |
Returns the dimension the class expects as input data. The function current_argument() will return a vector of this dimension and the user should not change the size of this vector!
Implements imaging::EnergyInterface.
1.5.5