Negate of function.
More...
#include <JMathlib.hh>
template<class JF1_t>
struct JMATH::JNegate< JF1_t >
Negate of function.
Definition at line 557 of file JMathlib.hh.
◆ JNegate() [1/2]
◆ JNegate() [2/2]
Constructor.
- Parameters
-
Definition at line 576 of file JMathlib.hh.
const JPolynome f1(1.0, 2.0, 3.0)
Function.
◆ getValue()
template<class JF1_t >
template<class ... Args>
double JMATH::JNegate< JF1_t >::getValue |
( |
const Args &... |
args | ) |
const |
|
inline |
Function value.
- Parameters
-
- Returns
- function value
Definition at line 588 of file JMathlib.hh.
590 return -
static_cast<const JF1_t&
>(*this).getValue(
args...);
◆ getDerivative()
Derivative value.
- Parameters
-
- Returns
- derivative value
Definition at line 600 of file JMathlib.hh.
602 return -
static_cast<const JF1_t&
>(*this).getDerivative(
x);
◆ getGradient()
template<class JF1_t >
template<class ... Args>
Get gradient.
- Parameters
-
- Returns
- gradient
Definition at line 613 of file JMathlib.hh.
617 static_cast<JF1_t&
>(gradient) =
static_cast<const JF1_t&
>(*this).
getGradient(
args...);
618 static_cast<JF1_t&
>(gradient).negate();
const JNegate & getGradient(const Args &...args) const
Get gradient.
◆ operator()()
Function value.
- Parameters
-
- Returns
- function value
Definition at line 362 of file JMathlib.hh.
364 return static_cast<const JF1_t&
>(*this).getValue(
args...);
The documentation for this struct was generated from the following file: