calculates gradient value of the given function and variables
More...
- See also
- partialDiff: get partial differential value using symmetric method
|
| template<typename T , typename DifferentialCategory = differential_symmetric_t, typename Func , typename ... Vars, typename ... Args> |
| auto | gradient (Func f, std::tuple< Vars... > vars, Args &&... args) |
| |
◆ gradient()
| auto vccc::gradient |
( |
Func |
f, |
|
|
std::tuple< Vars... > |
vars, |
|
|
Args &&... |
args |
|
) |
| |
|
inline |
- Template Parameters
-
| T | calculating type |
| DifferentialCategory | differentiating method |
- Parameters
-
| f | function |
| vars | function variables |
| args | non-variable extra function parameters |
- Returns