Sin function.
More...
#include <roboptim/core/fwd.hh>
|
void | impl_compute (result_ref result, const_argument_ref x) const |
|
void | impl_gradient (gradient_ref gradient, const_argument_ref x, size_type) const |
|
void | impl_jacobian (jacobian_ref jacobian, const_argument_ref x) const |
|
void | impl_hessian (hessian_ref hessian, const_argument_ref x, size_type) const |
| Hessian evaluation. More...
|
|
void | impl_gradient (gradient_ref gradient, const_argument_ref x, size_type) const |
|
void | impl_jacobian (jacobian_ref jacobian, const_argument_ref x) const |
|
void | impl_hessian (hessian_ref hessian, const_argument_ref x, size_type) const |
| Hessian evaluation. More...
|
|
| GenericTwiceDifferentiableFunction (size_type inputSize, size_type outputSize=1, std::string name=std::string()) |
| Concrete class constructor should call this constructor. More...
|
|
void | setZero (hessian_ref symmetric) const |
| Set a symmetric matrix to zero. More...
|
|
|
typedef std::pair< size_type, size_type > | hessianSize_t |
| Hessian size type represented as a pair of values. More...
|
|
template<typename T>
class roboptim::Sin< T >
Sin function.
◆ Sin()
Build an constant function.
- Parameters
-
offset | constant function offset |
◆ ~Sin()
◆ impl_compute()
template<typename T >
void roboptim::Sin< T >::impl_compute |
( |
result_ref |
result, |
|
|
const_argument_ref |
x |
|
) |
| const |
|
inlineprotected |
◆ impl_gradient()
◆ impl_hessian()
Hessian evaluation.
Compute the hessian, has to be implemented in concrete classes. The hessian is computed for a specific sub-function which id is passed through the functionId argument.
- Warning
- Do not call this function directly, call hessian instead.
- Parameters
-
hessian | hessian will be stored here |
argument | point where the hessian will be computed |
functionId | evaluated function id in the split representation |
Implements roboptim::GenericTwiceDifferentiableFunction< T >.
◆ impl_jacobian()
◆ print()
template<typename T >
virtual std::ostream& roboptim::Sin< T >::print |
( |
std::ostream & |
o | ) |
const |
|
inlinevirtual |
◆ ROBOPTIM_TWICE_DIFFERENTIABLE_FUNCTION_FWD_TYPEDEFS_()