Exponent of function.
More...
#include <JMathlib.hh>
|
| JExp () |
| Default constructor.
|
|
| JExp (const JF1_t &f1) |
| Constructor.
|
|
double | getValue (const double x) const |
| Function value.
|
|
double | getDerivative (const double x) const |
| Derivative value.
|
|
const JExp & | getGradient (const double x) const |
| Get gradient.
|
|
double | operator() (const Args &...args) const |
| Function value.
|
|
template<class JF1_t>
struct JMATH::JExp< JF1_t >
Exponent of function.
Definition at line 2403 of file JMathlib.hh.
◆ JExp() [1/2]
Default constructor.
Definition at line 2413 of file JMathlib.hh.
2413 :
2414 JF1_t()
2415 {}
◆ JExp() [2/2]
Constructor.
- Parameters
-
Definition at line 2423 of file JMathlib.hh.
2423 :
2424 JF1_t(f1)
2425 {}
◆ getValue()
template<class JF1_t >
double JMATH::JExp< JF1_t >::getValue |
( |
const double | x | ) |
const |
|
inline |
Function value.
- Parameters
-
- Returns
- function value
Definition at line 2434 of file JMathlib.hh.
2435 {
2436 return exp(static_cast<const JF1_t&>(*this).getValue(x));
2437 }
◆ getDerivative()
template<class JF1_t >
double JMATH::JExp< JF1_t >::getDerivative |
( |
const double | x | ) |
const |
|
inline |
Derivative value.
- Parameters
-
- Returns
- derivative value
Definition at line 2446 of file JMathlib.hh.
2447 {
2448 return static_cast<const JF1_t&
>(*this).getDerivative(x) *
getValue(x);
2449 }
double getValue(const double x) const
Function value.
◆ getGradient()
Get gradient.
- Parameters
-
- Returns
- gradient
Definition at line 2458 of file JMathlib.hh.
2459 {
2460 static JExp gradient;
2461
2462 gradient = static_cast<const JF1_t&>(*this).getGradient(x);
2464
2465 return gradient;
2466 }
JExp()
Default constructor.
◆ operator()()
Function value.
- Parameters
-
- Returns
- function value
Definition at line 362 of file JMathlib.hh.
363 {
364 return static_cast<const JF1_t&
>(*this).getValue(
args...);
365 }
The documentation for this struct was generated from the following file: