funcy  1.6.1
Public Member Functions | List of all members
funcy::Identity< Arg > Struct Template Reference

Identity mapping \( f(x)=x \). More...

#include <identity.h>

Inheritance diagram for funcy::Identity< Arg >:
Inheritance graph
[legend]
Collaboration diagram for funcy::Identity< Arg >:
Collaboration graph
[legend]

Public Member Functions

 Identity ()=default
 Default constructor.
 
 Identity (const Arg &x) noexcept(std::is_copy_constructible_v< Arg >)
 Constructor. More...
 
 Identity (Arg &&x) noexcept(std::is_move_constructible_v< Arg >)
 Constructor. More...
 
void update (const Arg &x)
 Reset point of evaluation.
 
const Arg & d0 () const noexcept
 Function value.
 
template<int >
const Arg & d1 (const Arg &dx) const noexcept
 First directional derivative.
 

Detailed Description

template<class Arg>
struct funcy::Identity< Arg >

Identity mapping \( f(x)=x \).

Constructor & Destructor Documentation

◆ Identity() [1/2]

template<class Arg >
funcy::Identity< Arg >::Identity ( const Arg &  x)
inlinenoexcept

Constructor.

Parameters
xpoint of evaluation.

◆ Identity() [2/2]

template<class Arg >
funcy::Identity< Arg >::Identity ( Arg &&  x)
inlinenoexcept

Constructor.

Parameters
xpoint of evaluation.

The documentation for this struct was generated from the following file: