limes 3.1.0
Composable Calculus Expressions for C++20
Loading...
Searching...
No Matches
limes::expr::Const< T > Struct Template Reference

#include <const.hpp>

+ Collaboration diagram for limes::expr::Const< T >:

Public Types

using value_type = T
 

Public Member Functions

constexpr Const () noexcept
 
constexpr Const (T v) noexcept
 
constexpr T eval (std::span< T const >) const noexcept
 
constexpr T evaluate (std::span< T const > args) const noexcept
 
template<std::size_t Dim>
constexpr auto derivative () const noexcept
 
std::string to_string () const
 

Public Attributes

value
 

Static Public Attributes

static constexpr std::size_t arity_v = 0
 

Detailed Description

template<typename T>
struct limes::expr::Const< T >

Definition at line 73 of file const.hpp.

Member Typedef Documentation

◆ value_type

template<typename T >
using limes::expr::Const< T >::value_type = T

Definition at line 74 of file const.hpp.

Constructor & Destructor Documentation

◆ Const() [1/2]

template<typename T >
constexpr limes::expr::Const< T >::Const ( )
inlineconstexprnoexcept

Definition at line 79 of file const.hpp.

◆ Const() [2/2]

template<typename T >
constexpr limes::expr::Const< T >::Const ( v)
inlineexplicitconstexprnoexcept

Definition at line 80 of file const.hpp.

Member Function Documentation

◆ derivative()

template<typename T >
template<std::size_t Dim>
constexpr auto limes::expr::Const< T >::derivative ( ) const
inlineconstexprnoexcept

Definition at line 92 of file const.hpp.

◆ eval()

template<typename T >
constexpr T limes::expr::Const< T >::eval ( std::span< T const >  ) const
inlineconstexprnoexcept

Definition at line 82 of file const.hpp.

References limes::expr::Const< T >::value.

Referenced by limes::expr::Const< T >::evaluate().

◆ evaluate()

template<typename T >
constexpr T limes::expr::Const< T >::evaluate ( std::span< T const >  args) const
inlineconstexprnoexcept

Definition at line 87 of file const.hpp.

References limes::expr::Const< T >::eval().

◆ to_string()

template<typename T >
std::string limes::expr::Const< T >::to_string ( ) const
inline

Definition at line 96 of file const.hpp.

References limes::expr::Const< T >::value.

Member Data Documentation

◆ arity_v

template<typename T >
constexpr std::size_t limes::expr::Const< T >::arity_v = 0
staticconstexpr

Definition at line 75 of file const.hpp.

◆ value


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