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

#include <primitives.hpp>

Public Types

using value_type = typename E::value_type
 
using tag_type = Tag
 
using child_type = E
 

Public Member Functions

constexpr UnaryFunc (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 Tag, typename E>
struct limes::expr::UnaryFunc< Tag, E >

Definition at line 59 of file primitives.hpp.

Member Typedef Documentation

◆ child_type

template<typename Tag , typename E >
using limes::expr::UnaryFunc< Tag, E >::child_type = E

Definition at line 62 of file primitives.hpp.

◆ tag_type

template<typename Tag , typename E >
using limes::expr::UnaryFunc< Tag, E >::tag_type = Tag

Definition at line 61 of file primitives.hpp.

◆ value_type

template<typename Tag , typename E >
using limes::expr::UnaryFunc< Tag, E >::value_type = typename E::value_type

Definition at line 60 of file primitives.hpp.

Constructor & Destructor Documentation

◆ UnaryFunc()

template<typename Tag , typename E >
constexpr limes::expr::UnaryFunc< Tag, E >::UnaryFunc ( c)
inlineexplicitconstexprnoexcept

Definition at line 68 of file primitives.hpp.

Member Function Documentation

◆ derivative()

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

Definition at line 98 of file primitives.hpp.

References limes::expr::UnaryFunc< Tag, E >::child.

◆ eval()

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

◆ evaluate()

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

Definition at line 92 of file primitives.hpp.

References limes::expr::UnaryFunc< Tag, E >::eval().

◆ to_string()

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

Definition at line 165 of file primitives.hpp.

References limes::expr::UnaryFunc< Tag, E >::child.

Member Data Documentation

◆ arity_v

template<typename Tag , typename E >
constexpr std::size_t limes::expr::UnaryFunc< Tag, E >::arity_v = E::arity_v
staticconstexpr

Definition at line 64 of file primitives.hpp.

◆ child


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