Squared function \(f^2\).
More...
#include <squared.h>
|
constexpr | Squared (F &&f_) |
| Constructor. More...
|
|
constexpr | Squared (const F &f_) |
| Constructor. More...
|
|
template<class InitF , std::enable_if_t< !std::is_same< std::decay_t< InitF >, Squared >::value > * = nullptr> |
constexpr | Squared (InitF &&f_) requires std |
| Constructor. More...
|
|
template<class Arg > |
void | update (Arg const &x) |
| Update point of evaluation.
|
|
template<int index, class Arg > |
void | update (const Arg &x) |
| Update variable corresponding to index.
|
|
template<class... IndexedArgs> |
void | bulk_update (IndexedArgs &&... args) |
|
template<int id, class Arg , class IndexedArg = IndexedType< Arg, id >> |
auto | d1 (Arg const &dx) const requires(ComputeProduct< D0< F > |
| First directional derivative. More...
|
|
template<int idx, int idy, class ArgX , class ArgY , class IndexedArgX = IndexedType< ArgX, idx >, class IndexedArgY = IndexedType< ArgY, idy >> |
auto | d2 (ArgX const &dx, ArgY const &dy) const requires(D2Sum< IndexedArgX |
| Second directional derivative. More...
|
|
template<int idx, int idy, int idz, class ArgX , class ArgY , class ArgZ , class IndexedArgX = IndexedType< ArgX, idx >, class IndexedArgY = IndexedType< ArgY, idy >, class IndexedArgZ = IndexedType< ArgZ, idz >> |
auto | d3 (ArgX const &dx, ArgY const &dy, ArgZ const &dz) const requires(D3Sum< IndexedArgX |
| Third directional derivative. More...
|
|
template<Function F>
struct funcy::mathop::Squared< F >
Squared function \(f^2\).
◆ Squared() [1/3]
◆ Squared() [2/3]
◆ Squared() [3/3]
template<Function F>
template<class InitF , std::enable_if_t< !std::is_same< std::decay_t< InitF >, Squared >::value > * = nullptr>
◆ d1()
template<Function F>
template<int id, class Arg , class IndexedArg = IndexedType< Arg, id >>
First directional derivative.
- Parameters
-
dx | direction for which the derivative is computed |
◆ d2()
template<Function F>
template<int idx, int idy, class ArgX , class ArgY , class IndexedArgX = IndexedType< ArgX, idx >, class IndexedArgY = IndexedType< ArgY, idy >>
Second directional derivative.
- Parameters
-
dx | direction for which the derivative is computed |
dy | direction for which the derivative is computed |
◆ d3()
template<Function F>
template<int idx, int idy, int idz, class ArgX , class ArgY , class ArgZ , class IndexedArgX = IndexedType< ArgX, idx >, class IndexedArgY = IndexedType< ArgY, idy >, class IndexedArgZ = IndexedType< ArgZ, idz >>
Third directional derivative.
- Parameters
-
dx | direction for which the derivative is computed |
dy | direction for which the derivative is computed |
dz | direction for which the derivative is computed |
The documentation for this struct was generated from the following file: