KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions
diff_gradient.h File Reference
#include <m_cpp/m_vector.h>
#include <diff_cpp/diff_util.h>
#include <vector>

Go to the source code of this file.

Namespaces

 kjb
 Classes and functions for dealing with trajectory files.
 

Functions

template<class Func , class Model , class Adapter >
Vector kjb::gradient_cfd (const Func &f, const Model &x, const std::vector< double > &dx, const Adapter &adapter)
 Computes the gradient of a function, evaluated at a point, using central finite differences. More...
 
template<class Func , class Vec >
Vector kjb::gradient_cfd (const Func &f, const Vec &x, const std::vector< double > &dx)
 Computes the gradient of a function, evaluated at a point, using central finite differences, for a vectory-style model. More...
 
template<class Func , class Model , class Adapter >
Vector kjb::gradient_ffd (const Func &f, const Model &x, const std::vector< double > &dx, const Adapter &adapter)
 Computes the gradient of a function, evaluated at a point, using forward finite differences. More...
 
template<class Func , class Vec >
Vector kjb::gradient_ffd (const Func &f, const Vec &x, const std::vector< double > &dx)
 Computes the gradient of a function, evaluated at a point, using forward finite differences, for a vectory-style model. More...
 
template<class Func , class Model , class Adapter >
Vector kjb::gradient_ind_cfd (const Func &f, const Model &x, const std::vector< double > &dx, const Adapter &adapter)
 Computes the gradient of a function, evaluated at a point, using central finite differences. More...
 
template<class Func , class Vec >
Vector kjb::gradient_ind_cfd (const Func &f, const Vec &x, const std::vector< double > &dx)
 Computes the gradient of a function, evaluated at a point, using central finite differences for a vector-style model. More...