21 #ifndef RFFGEN_IDENTITY_HH
22 #define RFFGEN_IDENTITY_HH
24 #include "Util/base.hh"
25 #include "Util/chainer.hh"
32 template <
class>
struct ArithmeticConceptCheck;
37 template <
class Arg,
class = ArithmeticConceptCheck<Arg> >
39 struct Identity :
Base , Chainer< Identity<Arg,ArithmeticConceptCheck<Arg> > >
57 const Arg&
d0() const noexcept {
return x_; }
61 const Arg&
d1(
const Arg& dx)
const noexcept {
return dx; }
75 #endif // RFFGEN_IDENTITY_HH
Identity(const Arg &x)
Constructor.
Definition: identity.hh:48
Identity()=default
Default constructor.
const Arg & d1(const Arg &dx) const noexcept
First directional derivative.
Definition: identity.hh:61
auto identity(const Arg &x)
Construct Identity<Arg>(x).
Definition: identity.hh:69
Base class for functions satisfying FunctionConcept. Required for enabling the operators in generate...
Definition: base.hh:27
Identity mapping .
Definition: identity.hh:39
void update(const Arg &x)
Reset point of evaluation.
Definition: identity.hh:51
const Arg & d0() const noexcept
Function value.
Definition: identity.hh:57