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

#include <pow.hpp>

Public Types

using value_type = typename E::value_type
 
using base_type = E
 

Public Member Functions

constexpr Pow (E b) 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

base
 

Static Public Attributes

static constexpr std::size_t arity_v = E::arity_v
 
static constexpr int exponent = N
 

Detailed Description

template<typename E, int N>
struct limes::expr::Pow< E, N >

Definition at line 25 of file pow.hpp.

Member Typedef Documentation

◆ base_type

template<typename E , int N>
using limes::expr::Pow< E, N >::base_type = E

Definition at line 27 of file pow.hpp.

◆ value_type

template<typename E , int N>
using limes::expr::Pow< E, N >::value_type = typename E::value_type

Definition at line 26 of file pow.hpp.

Constructor & Destructor Documentation

◆ Pow()

template<typename E , int N>
constexpr limes::expr::Pow< E, N >::Pow ( b)
inlineexplicitconstexprnoexcept

Definition at line 33 of file pow.hpp.

Member Function Documentation

◆ derivative()

template<typename E , int N>
template<std::size_t Dim>
constexpr auto limes::expr::Pow< E, N >::derivative ( ) const
inlineconstexpr

Definition at line 58 of file pow.hpp.

References limes::expr::Pow< E, N >::base.

◆ eval()

template<typename E , int N>
constexpr value_type limes::expr::Pow< E, N >::eval ( std::span< value_type const >  args) const
inlineconstexpr

Definition at line 35 of file pow.hpp.

References limes::expr::Pow< E, N >::base.

Referenced by limes::expr::Pow< E, N >::evaluate().

◆ evaluate()

template<typename E , int N>
constexpr value_type limes::expr::Pow< E, N >::evaluate ( std::span< value_type const >  args) const
inlineconstexpr

Definition at line 52 of file pow.hpp.

References limes::expr::Pow< E, N >::eval().

◆ to_string()

template<typename E , int N>
std::string limes::expr::Pow< E, N >::to_string ( ) const
inline

Definition at line 72 of file pow.hpp.

References limes::expr::Pow< E, N >::base.

Member Data Documentation

◆ arity_v

template<typename E , int N>
constexpr std::size_t limes::expr::Pow< E, N >::arity_v = E::arity_v
staticconstexpr

Definition at line 28 of file pow.hpp.

◆ base

template<typename E , int N>
E limes::expr::Pow< E, N >::base

◆ exponent

template<typename E , int N>
constexpr int limes::expr::Pow< E, N >::exponent = N
staticconstexpr

Definition at line 29 of file pow.hpp.


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