xtensor
Loading...
Searching...
No Matches
xt::xscalar_stepper< is_const, CT > Class Template Reference

Public Types

using self_type = xscalar_stepper<is_const, CT>
 
using storage_type = std::conditional_t<is_const, const xscalar<CT>, xscalar<CT>>
 
using value_type = typename storage_type::value_type
 
using reference
 
using pointer = std::conditional_t<is_const, typename storage_type::const_pointer, typename storage_type::pointer>
 
using size_type = typename storage_type::size_type
 
using difference_type = typename storage_type::difference_type
 
using shape_type = typename storage_type::shape_type
 
template<class requested_type >
using simd_return_type = xt_simd::simd_return_type<value_type, requested_type>
 

Public Member Functions

 xscalar_stepper (storage_type *c) noexcept
 
reference operator* () const noexcept
 
void step (size_type dim, size_type n=1) noexcept
 
void step_back (size_type dim, size_type n=1) noexcept
 
void reset (size_type dim) noexcept
 
void reset_back (size_type dim) noexcept
 
void to_begin () noexcept
 
void to_end (layout_type l) noexcept
 
template<class T >
simd_return_type< T > step_simd ()
 
void step_leading ()
 
template<class T >
auto step_simd () -> simd_return_type< T >
 

Detailed Description

template<bool is_const, class CT>
class xt::xscalar_stepper< is_const, CT >

Definition at line 351 of file xscalar.hpp.

Member Typedef Documentation

◆ difference_type

template<bool is_const, class CT >
using xt::xscalar_stepper< is_const, CT >::difference_type = typename storage_type::difference_type

Definition at line 363 of file xscalar.hpp.

◆ pointer

template<bool is_const, class CT >
using xt::xscalar_stepper< is_const, CT >::pointer = std::conditional_t<is_const, typename storage_type::const_pointer, typename storage_type::pointer>

Definition at line 361 of file xscalar.hpp.

◆ reference

template<bool is_const, class CT >
using xt::xscalar_stepper< is_const, CT >::reference
Initial value:
std::
conditional_t<is_const, typename storage_type::const_reference, typename storage_type::reference>

Definition at line 359 of file xscalar.hpp.

◆ self_type

template<bool is_const, class CT >
using xt::xscalar_stepper< is_const, CT >::self_type = xscalar_stepper<is_const, CT>

Definition at line 355 of file xscalar.hpp.

◆ shape_type

template<bool is_const, class CT >
using xt::xscalar_stepper< is_const, CT >::shape_type = typename storage_type::shape_type

Definition at line 364 of file xscalar.hpp.

◆ simd_return_type

template<bool is_const, class CT >
template<class requested_type >
using xt::xscalar_stepper< is_const, CT >::simd_return_type = xt_simd::simd_return_type<value_type, requested_type>

Definition at line 367 of file xscalar.hpp.

◆ size_type

template<bool is_const, class CT >
using xt::xscalar_stepper< is_const, CT >::size_type = typename storage_type::size_type

Definition at line 362 of file xscalar.hpp.

◆ storage_type

template<bool is_const, class CT >
using xt::xscalar_stepper< is_const, CT >::storage_type = std::conditional_t<is_const, const xscalar<CT>, xscalar<CT>>

Definition at line 356 of file xscalar.hpp.

◆ value_type

template<bool is_const, class CT >
using xt::xscalar_stepper< is_const, CT >::value_type = typename storage_type::value_type

Definition at line 358 of file xscalar.hpp.

Constructor & Destructor Documentation

◆ xscalar_stepper()

template<bool is_const, class CT >
xt::xscalar_stepper< is_const, CT >::xscalar_stepper ( storage_type * c)
inlinenoexcept

Definition at line 972 of file xscalar.hpp.

Member Function Documentation

◆ operator*()

template<bool is_const, class CT >
auto xt::xscalar_stepper< is_const, CT >::operator* ( ) const
inlinenoexcept

Definition at line 978 of file xscalar.hpp.

◆ reset()

template<bool is_const, class CT >
void xt::xscalar_stepper< is_const, CT >::reset ( size_type dim)
inlinenoexcept

Definition at line 994 of file xscalar.hpp.

◆ reset_back()

template<bool is_const, class CT >
void xt::xscalar_stepper< is_const, CT >::reset_back ( size_type dim)
inlinenoexcept

Definition at line 999 of file xscalar.hpp.

◆ step()

template<bool is_const, class CT >
void xt::xscalar_stepper< is_const, CT >::step ( size_type dim,
size_type n = 1 )
inlinenoexcept

Definition at line 984 of file xscalar.hpp.

◆ step_back()

template<bool is_const, class CT >
void xt::xscalar_stepper< is_const, CT >::step_back ( size_type dim,
size_type n = 1 )
inlinenoexcept

Definition at line 989 of file xscalar.hpp.

◆ step_leading()

template<bool is_const, class CT >
void xt::xscalar_stepper< is_const, CT >::step_leading ( )
inline

Definition at line 1021 of file xscalar.hpp.

◆ step_simd()

template<bool is_const, class CT >
template<class T >
auto xt::xscalar_stepper< is_const, CT >::step_simd ( ) -> simd_return_type<T>
inline

Definition at line 1015 of file xscalar.hpp.

◆ to_begin()

template<bool is_const, class CT >
void xt::xscalar_stepper< is_const, CT >::to_begin ( )
inlinenoexcept

Definition at line 1004 of file xscalar.hpp.

◆ to_end()

template<bool is_const, class CT >
void xt::xscalar_stepper< is_const, CT >::to_end ( layout_type l)
inlinenoexcept

Definition at line 1009 of file xscalar.hpp.


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