PARP Research Group | Universidad de Murcia |
QVJacobian Class Reference
|
Public Member Functions | |
QVJacobian (QVFunction< QVVector, QVVector > &function) | |
Jacobian function constructor. |
Class to create jacobian functions.
This class can be used to create Jacobian function class types. Objects derived from this class are function objects, that map vector to matrix objects.
The Jacobian function objects must be initialized with a function, which must be provided in a QVFunction object. The Jacobian object function will use the method qvEstimateJacobian to obtain a numerical approximation of the Jacobian matrix for that vector function.
An example usage of these objects is the following:
[...] class ExampleVectorFunction: public QVFunction<QVVector, QVVector> { public: QVVector evaluate(const QVVector &v) const { [...] } }; [...] int main() { [...] ExampleVectorFunction f; QVJacobian eJacobian(f); QVVector x = QVVector::random(10); std::cout << "x = " << x << std::endl; std::cout << "f(x) = " << f(x) << std::endl; std::cout << "Jacobian of f(x) = " << eJacobian(x) << std::endl; [...] }
Definition at line 69 of file qvjacobian.h.
QVJacobian::QVJacobian | ( | QVFunction< QVVector, QVVector > & | function | ) | [inline] |
Jacobian function constructor.
Creates a new Jacobian function, from a vector function.
function | The vector function. |
Definition at line 86 of file qvjacobian.h.