MinusFunc Class Reference
A wrapper class to multiply a function with -1.
More...
#include <func.h>
List of all members.
Detailed Description
A wrapper class to multiply a function with -1.
this == - *f .
Definition at line 505 of file func.h.
Constructor & Destructor Documentation
Constructor for a normal func.
- Parameters:
-
| f_ | The function to wrap. |
| out_func_p_ | An ostream to print function-related output to, default is out_out_p. |
| out_func_log_p_ | An ostream to print function-related logging-output to, default is out_func_p. |
Definition at line 519 of file func.h.
Member Function Documentation
SparsityInfo& MinusFunc::get_sparsity |
( |
|
) |
[inline, protected, virtual] |
virtual bool MinusFunc::sparsity_available |
( |
|
) |
const [inline, virtual] |
To check, whether the sparsity information is set.
- Returns:
- True, if sparsity information is available. False, else.
Reimplemented from Func.
Definition at line 524 of file func.h.
virtual const SparsityInfo& MinusFunc::get_sparsity |
( |
|
) |
const [inline, virtual] |
Gives the sparsity information with read-permissions.
Reimplemented from Func.
Definition at line 526 of file func.h.
virtual bool MinusFunc::compute_sparsity_pattern |
( |
const vector< dvector > & |
sample_set |
) |
[virtual] |
double MinusFunc::eval |
( |
const UserVector< double > & |
x |
) |
const [inline, virtual] |
void MinusFunc::grad |
( |
UserVector< double > & |
g, |
|
|
const UserVector< double > & |
x | |
|
) |
| | const [inline, virtual] |
Computes the (sub)gradient for a UserVector<double>.
- Parameters:
-
- Returns:
- The gradient as dvector.
- See also:
- grad(UserVector<double>&, UserVector<double>&)
-
add_grad(UserVector<double>&, const UserVector<double>&)
-
add_valgrad(UserVector<double>&, UserVector<double>&, const UserVector<double>&)
Reimplemented from Func.
Definition at line 547 of file func.h.
Evaluates the product of the Hessian and a dvector.
- Parameters:
-
| x | The dvector to evaluate the Hessian for. |
| z | The dvector to multiply with the Hessian. |
- Returns:
- The result as a dvector:
.
- See also:
- HessMult(UserVector<double>&, const UserVector<double>&, const UserVector<double>&)
Reimplemented from Func.
Definition at line 561 of file func.h.
virtual void MinusFunc::set_curvature |
( |
CurvatureType |
ct |
) |
[inline, virtual] |
virtual CurvatureType MinusFunc::get_curvature |
( |
|
) |
const [inline, virtual] |
void MinusFunc::print |
( |
ostream & |
out |
) |
const [inline, virtual] |
Print's the shift-value and the shifted function.
- Parameters:
-
| out | The ostream to print to. |
Reimplemented from Func.
Definition at line 608 of file func.h.
Member Data Documentation
The function to wrap.
Definition at line 509 of file func.h.
The documentation for this class was generated from the following file: