limes 3.1.0
Composable Calculus Expressions for C++20
Loading...
Searching...
No Matches
limes::expr::Unary< Op, E > Struct Template Reference

#include <unary.hpp>

Public Types

using value_type = typename E::value_type
 
using op_type = Op
 
using child_type = E
 

Public Member Functions

constexpr Unary (E c) noexcept
 
constexpr value_type eval (std::span< value_type const > args) const
 
constexpr value_type evaluate (std::span< value_type const > args) const
 
template<std::size_t Dim>
constexpr auto derivative () const
 
std::string to_string () const
 

Public Attributes

child
 

Static Public Attributes

static constexpr std::size_t arity_v = E::arity_v
 

Detailed Description

template<typename Op, typename E>
struct limes::expr::Unary< Op, E >

Definition at line 24 of file unary.hpp.

Member Typedef Documentation

◆ child_type

template<typename Op , typename E >
using limes::expr::Unary< Op, E >::child_type = E

Definition at line 27 of file unary.hpp.

◆ op_type

template<typename Op , typename E >
using limes::expr::Unary< Op, E >::op_type = Op

Definition at line 26 of file unary.hpp.

◆ value_type

template<typename Op , typename E >
using limes::expr::Unary< Op, E >::value_type = typename E::value_type

Definition at line 25 of file unary.hpp.

Constructor & Destructor Documentation

◆ Unary()

template<typename Op , typename E >
constexpr limes::expr::Unary< Op, E >::Unary ( c)
inlineexplicitconstexprnoexcept

Definition at line 33 of file unary.hpp.

Member Function Documentation

◆ derivative()

template<typename Op , typename E >
template<std::size_t Dim>
constexpr auto limes::expr::Unary< Op, E >::derivative ( ) const
inlineconstexpr

Definition at line 48 of file unary.hpp.

References limes::expr::Unary< Op, E >::child.

◆ eval()

template<typename Op , typename E >
constexpr value_type limes::expr::Unary< Op, E >::eval ( std::span< value_type const >  args) const
inlineconstexpr

Definition at line 35 of file unary.hpp.

References limes::expr::Unary< Op, E >::child.

Referenced by limes::expr::Unary< Op, E >::evaluate().

◆ evaluate()

template<typename Op , typename E >
constexpr value_type limes::expr::Unary< Op, E >::evaluate ( std::span< value_type const >  args) const
inlineconstexpr

Definition at line 42 of file unary.hpp.

References limes::expr::Unary< Op, E >::eval().

◆ to_string()

template<typename Op , typename E >
std::string limes::expr::Unary< Op, E >::to_string ( ) const
inline

Definition at line 54 of file unary.hpp.

References limes::expr::Unary< Op, E >::child.

Member Data Documentation

◆ arity_v

template<typename Op , typename E >
constexpr std::size_t limes::expr::Unary< Op, E >::arity_v = E::arity_v
staticconstexpr

Definition at line 29 of file unary.hpp.

◆ child


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