xtensor
Loading...
Searching...
No Matches
xt::reducer_options< R, T > Struct Template Reference

Classes

struct  initial_tester
 
struct  initial_tester< const xinitial< X > >
 
struct  initial_tester< xinitial< X > >
 

Public Types

using d_t = std::decay_t<T>
 
using evaluation_strategy
 
using keep_dims
 
template<class NR >
using rebind_t = reducer_options<NR, T>
 

Public Member Functions

 reducer_options (const T &tpl)
 
template<class NR >
auto rebind (NR initial, const reducer_options< R, T > &) const
 

Public Attributes

R initial_value
 

Static Public Attributes

static constexpr std::size_t initial_val_idx = xtl::mpl::find_if<initial_tester, d_t>::value
 
static constexpr bool has_initial_value = initial_val_idx != std::tuple_size<d_t>::value
 

Detailed Description

template<class R, class T>
struct xt::reducer_options< R, T >

Definition at line 108 of file xreducer.hpp.

Member Typedef Documentation

◆ d_t

template<class R , class T >
using xt::reducer_options< R, T >::d_t = std::decay_t<T>

Definition at line 126 of file xreducer.hpp.

◆ evaluation_strategy

template<class R , class T >
using xt::reducer_options< R, T >::evaluation_strategy
Initial value:

Definition at line 148 of file xreducer.hpp.

◆ keep_dims

template<class R , class T >
using xt::reducer_options< R, T >::keep_dims
Initial value:
std::
conditional_t<tuple_idx_of<xt::keep_dims_type, d_t>::value != -1, std::true_type, std::false_type>

Definition at line 153 of file xreducer.hpp.

◆ rebind_t

template<class R , class T >
template<class NR >
using xt::reducer_options< R, T >::rebind_t = reducer_options<NR, T>

Definition at line 161 of file xreducer.hpp.

Constructor & Destructor Documentation

◆ reducer_options()

template<class R , class T >
xt::reducer_options< R, T >::reducer_options ( const T & tpl)
inline

Definition at line 131 of file xreducer.hpp.

Member Function Documentation

◆ rebind()

template<class R , class T >
template<class NR >
auto xt::reducer_options< R, T >::rebind ( NR initial,
const reducer_options< R, T > &  ) const
inline

Definition at line 164 of file xreducer.hpp.

Member Data Documentation

◆ has_initial_value

template<class R , class T >
constexpr bool xt::reducer_options< R, T >::has_initial_value = initial_val_idx != std::tuple_size<d_t>::value
staticconstexpr

Definition at line 156 of file xreducer.hpp.

◆ initial_val_idx

template<class R , class T >
constexpr std::size_t xt::reducer_options< R, T >::initial_val_idx = xtl::mpl::find_if<initial_tester, d_t>::value
staticconstexpr

Definition at line 128 of file xreducer.hpp.

◆ initial_value

template<class R , class T >
R xt::reducer_options< R, T >::initial_value

Definition at line 158 of file xreducer.hpp.


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