xtensor
Loading...
Searching...
No Matches
xt::xblockwise_reducer< CT, F, X, O > Class Template Reference

Public Types

using self_type = xblockwise_reducer<CT, F, X, O>
 
using raw_options_type = std::decay_t<O>
 
using keep_dims = xtl::mpl::contains<raw_options_type, xt::keep_dims_type>
 
using xexpression_type = std::decay_t<CT>
 
using shape_type = typename xreducer_shape_type<typename xexpression_type::shape_type, std::decay_t<X>, keep_dims>::type
 
using functor_type = F
 
using value_type = typename functor_type::value_type
 
using input_shape_type = typename xexpression_type::shape_type
 
using input_chunk_index_type = filter_fixed_shape_t<input_shape_type>
 
using input_grid_strides = filter_fixed_shape_t<input_shape_type>
 
using axes_type = X
 
using chunk_shape_type = filter_fixed_shape_t<shape_type>
 

Public Member Functions

template<class E , class BS , class XX , class OO , class FF >
 xblockwise_reducer (E &&e, BS &&block_shape, XX &&axes, OO &&options, FF &&functor)
 
const input_shape_type & input_shape () const
 
const axes_typeaxes () const
 
std::size_t dimension () const
 
const shape_type & shape () const
 
const chunk_shape_typechunk_shape () const
 
template<class R >
void assign_to (R &result) const
 
template<class CI >
auto compute_input_chunk_range (CI &result_chunk_iter) const -> input_chunk_range_type
 

Detailed Description

template<class CT, class F, class X, class O>
class xt::xblockwise_reducer< CT, F, X, O >

Definition at line 15 of file xblockwise_reducer.hpp.

Member Typedef Documentation

◆ axes_type

template<class CT , class F , class X , class O >
using xt::xblockwise_reducer< CT, F, X, O >::axes_type = X

Definition at line 29 of file xblockwise_reducer.hpp.

◆ chunk_shape_type

template<class CT , class F , class X , class O >
using xt::xblockwise_reducer< CT, F, X, O >::chunk_shape_type = filter_fixed_shape_t<shape_type>

Definition at line 30 of file xblockwise_reducer.hpp.

◆ functor_type

template<class CT , class F , class X , class O >
using xt::xblockwise_reducer< CT, F, X, O >::functor_type = F

Definition at line 24 of file xblockwise_reducer.hpp.

◆ input_chunk_index_type

template<class CT , class F , class X , class O >
using xt::xblockwise_reducer< CT, F, X, O >::input_chunk_index_type = filter_fixed_shape_t<input_shape_type>

Definition at line 27 of file xblockwise_reducer.hpp.

◆ input_grid_strides

template<class CT , class F , class X , class O >
using xt::xblockwise_reducer< CT, F, X, O >::input_grid_strides = filter_fixed_shape_t<input_shape_type>

Definition at line 28 of file xblockwise_reducer.hpp.

◆ input_shape_type

template<class CT , class F , class X , class O >
using xt::xblockwise_reducer< CT, F, X, O >::input_shape_type = typename xexpression_type::shape_type

Definition at line 26 of file xblockwise_reducer.hpp.

◆ keep_dims

template<class CT , class F , class X , class O >
using xt::xblockwise_reducer< CT, F, X, O >::keep_dims = xtl::mpl::contains<raw_options_type, xt::keep_dims_type>

Definition at line 21 of file xblockwise_reducer.hpp.

◆ raw_options_type

template<class CT , class F , class X , class O >
using xt::xblockwise_reducer< CT, F, X, O >::raw_options_type = std::decay_t<O>

Definition at line 20 of file xblockwise_reducer.hpp.

◆ self_type

template<class CT , class F , class X , class O >
using xt::xblockwise_reducer< CT, F, X, O >::self_type = xblockwise_reducer<CT, F, X, O>

Definition at line 19 of file xblockwise_reducer.hpp.

◆ shape_type

template<class CT , class F , class X , class O >
using xt::xblockwise_reducer< CT, F, X, O >::shape_type = typename xreducer_shape_type<typename xexpression_type::shape_type, std::decay_t<X>, keep_dims>::type

Definition at line 23 of file xblockwise_reducer.hpp.

◆ value_type

template<class CT , class F , class X , class O >
using xt::xblockwise_reducer< CT, F, X, O >::value_type = typename functor_type::value_type

Definition at line 25 of file xblockwise_reducer.hpp.

◆ xexpression_type

template<class CT , class F , class X , class O >
using xt::xblockwise_reducer< CT, F, X, O >::xexpression_type = std::decay_t<CT>

Definition at line 22 of file xblockwise_reducer.hpp.

Constructor & Destructor Documentation

◆ xblockwise_reducer()

template<class CT , class F , class X , class O >
template<class E , class BS , class XX , class OO , class FF >
xt::xblockwise_reducer< CT, F, X, O >::xblockwise_reducer ( E && e,
BS && block_shape,
XX && axes,
OO && options,
FF && functor )

Definition at line 77 of file xblockwise_reducer.hpp.

Member Function Documentation

◆ assign_to()

template<class CT , class F , class X , class O >
template<class R >
void xt::xblockwise_reducer< CT, F, X, O >::assign_to ( R & result) const
inline

Definition at line 131 of file xblockwise_reducer.hpp.

◆ axes()

template<class CT , class F , class X , class O >
auto xt::xblockwise_reducer< CT, F, X, O >::axes ( ) const
inline

Definition at line 106 of file xblockwise_reducer.hpp.

◆ chunk_shape()

template<class CT , class F , class X , class O >
auto xt::xblockwise_reducer< CT, F, X, O >::chunk_shape ( ) const
inline

Definition at line 124 of file xblockwise_reducer.hpp.

◆ compute_input_chunk_range()

template<class CT , class F , class X , class O >
template<class CI >
auto xt::xblockwise_reducer< CT, F, X, O >::compute_input_chunk_range ( CI & result_chunk_iter) const -> input_chunk_range_type

Definition at line 189 of file xblockwise_reducer.hpp.

◆ dimension()

template<class CT , class F , class X , class O >
std::size_t xt::xblockwise_reducer< CT, F, X, O >::dimension ( ) const
inline

Definition at line 112 of file xblockwise_reducer.hpp.

◆ input_shape()

template<class CT , class F , class X , class O >
auto xt::xblockwise_reducer< CT, F, X, O >::input_shape ( ) const
inline

Definition at line 100 of file xblockwise_reducer.hpp.

◆ shape()

template<class CT , class F , class X , class O >
auto xt::xblockwise_reducer< CT, F, X, O >::shape ( ) const
inline

Definition at line 118 of file xblockwise_reducer.hpp.


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