limes 3.1.0
Composable Calculus Expressions for C++20
Loading...
Searching...
No Matches
limes::expr::FiniteProduct< Expr, IndexDim > Struct Template Reference

#include <sum_product.hpp>

Public Types

using value_type = typename Expr::value_type
 
using body_type = Expr
 

Public Member Functions

constexpr FiniteProduct (Expr b, int l, int h) 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

Expr body
 
int lo
 
int hi
 

Static Public Attributes

static constexpr std::size_t arity_v
 

Detailed Description

template<typename Expr, std::size_t IndexDim>
struct limes::expr::FiniteProduct< Expr, IndexDim >

Definition at line 76 of file sum_product.hpp.

Member Typedef Documentation

◆ body_type

template<typename Expr , std::size_t IndexDim>
using limes::expr::FiniteProduct< Expr, IndexDim >::body_type = Expr

Definition at line 78 of file sum_product.hpp.

◆ value_type

template<typename Expr , std::size_t IndexDim>
using limes::expr::FiniteProduct< Expr, IndexDim >::value_type = typename Expr::value_type

Definition at line 77 of file sum_product.hpp.

Constructor & Destructor Documentation

◆ FiniteProduct()

template<typename Expr , std::size_t IndexDim>
constexpr limes::expr::FiniteProduct< Expr, IndexDim >::FiniteProduct ( Expr  b,
int  l,
int  h 
)
inlineconstexprnoexcept

Definition at line 87 of file sum_product.hpp.

Member Function Documentation

◆ derivative()

template<typename Expr , std::size_t IndexDim>
template<std::size_t Dim>
constexpr auto limes::expr::FiniteProduct< Expr, IndexDim >::derivative ( ) const
inlineconstexpr

◆ eval()

template<typename Expr , std::size_t IndexDim>
constexpr value_type limes::expr::FiniteProduct< Expr, IndexDim >::eval ( std::span< value_type const >  args) const
inlineconstexpr

◆ evaluate()

template<typename Expr , std::size_t IndexDim>
constexpr value_type limes::expr::FiniteProduct< Expr, IndexDim >::evaluate ( std::span< value_type const >  args) const
inlineconstexpr

◆ to_string()

template<typename Expr , std::size_t IndexDim>
std::string limes::expr::FiniteProduct< Expr, IndexDim >::to_string ( ) const
inline

Member Data Documentation

◆ arity_v

template<typename Expr , std::size_t IndexDim>
constexpr std::size_t limes::expr::FiniteProduct< Expr, IndexDim >::arity_v
staticconstexpr
Initial value:
=
(Expr::arity_v > IndexDim) ? (Expr::arity_v - 1) : Expr::arity_v

Definition at line 80 of file sum_product.hpp.

◆ body

◆ hi

◆ lo


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