funcy  1.6.1
Public Member Functions | List of all members
funcy::Variable< T, id > Struct Template Reference

Independent variable. Can be uniquely identified by its id. More...

#include <variable.h>

Public Member Functions

constexpr Variable (const T &t_)
 
constexpr Variable (T &&t_)
 
template<int index, class Arg >
void update (const Arg &t_)
 Update variable if index==id.
 
constexpr const T & operator() () const noexcept
 Value of the variable.
 
template<int index, class Arg , class = std::enable_if_t< id == index >>
const T & d1 (const Arg &dt) const noexcept
 First directional derivative. Only available if id==index.
 

Detailed Description

template<class T, int id>
struct funcy::Variable< T, id >

Independent variable. Can be uniquely identified by its id.


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