xtensor
Loading...
Searching...
No Matches
xt::xchunked_view< E > Class Template Reference

Public Types

using self_type = xchunked_view<E>
 
using expression_type = std::decay_t<E>
 
using value_type = typename expression_type::value_type
 
using reference = typename expression_type::reference
 
using const_reference = typename expression_type::const_reference
 
using pointer = typename expression_type::pointer
 
using const_pointer = typename expression_type::const_pointer
 
using size_type = typename expression_type::size_type
 
using difference_type = typename expression_type::difference_type
 
using shape_type = svector<size_type>
 
using chunk_iterator = xchunk_iterator<self_type>
 
using const_chunk_iterator = xchunk_iterator<const self_type>
 

Public Member Functions

template<class OE , class S >
 xchunked_view (OE &&e, S &&chunk_shape)
 
template<class OE >
 xchunked_view (OE &&e)
 
void init ()
 
template<class OE >
std::enable_if_t<!is_chunked_t< OE >::value, xchunked_view< E > & > operator= (const OE &e)
 
template<class OE >
std::enable_if_t< is_chunked_t< OE >::value, xchunked_view< E > & > operator= (const OE &e)
 
size_type dimension () const noexcept
 
const shape_typeshape () const noexcept
 
const shape_typechunk_shape () const noexcept
 
size_type grid_size () const noexcept
 
const shape_typegrid_shape () const noexcept
 
expression_type & expression () noexcept
 
const expression_type & expression () const noexcept
 
chunk_iterator chunk_begin ()
 
chunk_iterator chunk_end ()
 
const_chunk_iterator chunk_begin () const
 
const_chunk_iterator chunk_end () const
 
const_chunk_iterator chunk_cbegin () const
 
const_chunk_iterator chunk_cend () const
 

Detailed Description

template<class E>
class xt::xchunked_view< E >

Definition at line 36 of file xchunked_view.hpp.

Member Typedef Documentation

◆ chunk_iterator

template<class E >
using xt::xchunked_view< E >::chunk_iterator = xchunk_iterator<self_type>

Definition at line 50 of file xchunked_view.hpp.

◆ const_chunk_iterator

template<class E >
using xt::xchunked_view< E >::const_chunk_iterator = xchunk_iterator<const self_type>

Definition at line 51 of file xchunked_view.hpp.

◆ const_pointer

template<class E >
using xt::xchunked_view< E >::const_pointer = typename expression_type::const_pointer

Definition at line 46 of file xchunked_view.hpp.

◆ const_reference

template<class E >
using xt::xchunked_view< E >::const_reference = typename expression_type::const_reference

Definition at line 44 of file xchunked_view.hpp.

◆ difference_type

template<class E >
using xt::xchunked_view< E >::difference_type = typename expression_type::difference_type

Definition at line 48 of file xchunked_view.hpp.

◆ expression_type

template<class E >
using xt::xchunked_view< E >::expression_type = std::decay_t<E>

Definition at line 41 of file xchunked_view.hpp.

◆ pointer

template<class E >
using xt::xchunked_view< E >::pointer = typename expression_type::pointer

Definition at line 45 of file xchunked_view.hpp.

◆ reference

template<class E >
using xt::xchunked_view< E >::reference = typename expression_type::reference

Definition at line 43 of file xchunked_view.hpp.

◆ self_type

template<class E >
using xt::xchunked_view< E >::self_type = xchunked_view<E>

Definition at line 40 of file xchunked_view.hpp.

◆ shape_type

template<class E >
using xt::xchunked_view< E >::shape_type = svector<size_type>

Definition at line 49 of file xchunked_view.hpp.

◆ size_type

template<class E >
using xt::xchunked_view< E >::size_type = typename expression_type::size_type

Definition at line 47 of file xchunked_view.hpp.

◆ value_type

template<class E >
using xt::xchunked_view< E >::value_type = typename expression_type::value_type

Definition at line 42 of file xchunked_view.hpp.

Constructor & Destructor Documentation

◆ xchunked_view() [1/2]

template<class E >
template<class OE , class S >
xt::xchunked_view< E >::xchunked_view ( OE && e,
S && chunk_shape )
inline

Definition at line 102 of file xchunked_view.hpp.

◆ xchunked_view() [2/2]

template<class E >
template<class OE >
xt::xchunked_view< E >::xchunked_view ( OE && e)
inline

Definition at line 114 of file xchunked_view.hpp.

Member Function Documentation

◆ chunk_begin() [1/2]

template<class E >
auto xt::xchunked_view< E >::chunk_begin ( )
inline

Definition at line 245 of file xchunked_view.hpp.

◆ chunk_begin() [2/2]

template<class E >
auto xt::xchunked_view< E >::chunk_begin ( ) const
inline

Definition at line 258 of file xchunked_view.hpp.

◆ chunk_cbegin()

template<class E >
auto xt::xchunked_view< E >::chunk_cbegin ( ) const
inline

Definition at line 271 of file xchunked_view.hpp.

◆ chunk_cend()

template<class E >
auto xt::xchunked_view< E >::chunk_cend ( ) const
inline

Definition at line 277 of file xchunked_view.hpp.

◆ chunk_end() [1/2]

template<class E >
auto xt::xchunked_view< E >::chunk_end ( )
inline

Definition at line 252 of file xchunked_view.hpp.

◆ chunk_end() [2/2]

template<class E >
auto xt::xchunked_view< E >::chunk_end ( ) const
inline

Definition at line 265 of file xchunked_view.hpp.

◆ chunk_shape()

template<class E >
auto xt::xchunked_view< E >::chunk_shape ( ) const
inlinenoexcept

Definition at line 215 of file xchunked_view.hpp.

◆ dimension()

template<class E >
auto xt::xchunked_view< E >::dimension ( ) const
inlinenoexcept

Definition at line 203 of file xchunked_view.hpp.

◆ expression() [1/2]

template<class E >
auto xt::xchunked_view< E >::expression ( ) const
inlinenoexcept

Definition at line 239 of file xchunked_view.hpp.

◆ expression() [2/2]

template<class E >
auto xt::xchunked_view< E >::expression ( )
inlinenoexcept

Definition at line 233 of file xchunked_view.hpp.

◆ grid_shape()

template<class E >
auto xt::xchunked_view< E >::grid_shape ( ) const
inlinenoexcept

Definition at line 227 of file xchunked_view.hpp.

◆ grid_size()

template<class E >
auto xt::xchunked_view< E >::grid_size ( ) const
inlinenoexcept

Definition at line 221 of file xchunked_view.hpp.

◆ init()

template<class E >
void xt::xchunked_view< E >::init ( )

Definition at line 123 of file xchunked_view.hpp.

◆ operator=() [1/2]

template<class E >
template<class OE >
std::enable_if_t<!is_chunked_t< OE >::value, xchunked_view< E > & > xt::xchunked_view< E >::operator= ( const OE & e)

Definition at line 153 of file xchunked_view.hpp.

◆ operator=() [2/2]

template<class E >
template<class OE >
std::enable_if_t< is_chunked_t< OE >::value, xchunked_view< E > & > xt::xchunked_view< E >::operator= ( const OE & e)

Definition at line 167 of file xchunked_view.hpp.

◆ shape()

template<class E >
auto xt::xchunked_view< E >::shape ( ) const
inlinenoexcept

Definition at line 209 of file xchunked_view.hpp.


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