Represantation of a Hessian Matrix for a function. More...
#include <func.h>
Public Member Functions | |
HessMatrix (Pointer< const Func > f_, Pointer< const UserVector< double > > x0_) | |
Constructor for a function and a dvector. | |
HessMatrix (const Func &f_, const UserVector< double > &x0_) | |
void | MultV (UserVector< double > &y, const UserVector< double > &x) const |
Computes the product of the Hessian and a UserVector<double>. | |
void | print (ostream &out) const |
Prints some information about this matrix. | |
Protected Attributes | |
Pointer< const UserVector < double > > | x0 |
The UserVector<double> to compute the Hessian for. | |
Pointer< const Func > | f |
The function to compute the Hessian for. |
Represantation of a Hessian Matrix for a function.
So it's like a wrapper-class for Func::HessMult(...)
Definition at line 456 of file func.h.
HessMatrix::HessMatrix | ( | Pointer< const Func > | f_, | |
Pointer< const UserVector< double > > | x0_ | |||
) | [inline] |
Constructor for a function and a dvector.
f_ | The function, which Hessian should be computed. | |
x0_ | The UserVector<double> to compute the Hessian of f_ for. |
HessMatrix::HessMatrix | ( | const Func & | f_, | |
const UserVector< double > & | x0_ | |||
) | [inline] |
void HessMatrix::MultV | ( | UserVector< double > & | y, | |
const UserVector< double > & | x | |||
) | const [inline, virtual] |
Computes the product of the Hessian and a UserVector<double>.
y | The UserVector<double> to store the result in: ![]() | |
x | The UserVector<double> to multiply with the Hessian. |
Implements UserMatrix.
void HessMatrix::print | ( | ostream & | out | ) | const [inline, virtual] |
Prints some information about this matrix.
Prints the dvector x0 and the function.
out | The ostream to print to. |
Reimplemented from UserMatrix.
Pointer<const UserVector<double> > HessMatrix::x0 [protected] |
The UserVector<double> to compute the Hessian for.
Pointer<const Func> HessMatrix::f [protected] |