xtensor
Loading...
Searching...
No Matches
xt::xrange_adaptor< A, B, C > Struct Template Reference

Public Member Functions

 xrange_adaptor (A start_val, B stop_val, C step)
 
template<class MI = A, class MA = B, class STEP = C>
std::enable_if_t< xtl::is_integral< MI >::value &&xtl::is_integral< MA >::value &&xtl::is_integral< STEP >::value, xstepped_range< std::ptrdiff_t > > get (std::size_t size) const
 
template<class MI = A, class MA = B, class STEP = C>
std::enable_if_t< !xtl::is_integral< MI >::value &&xtl::is_integral< MA >::value &&xtl::is_integral< STEP >::value, xstepped_range< std::ptrdiff_t > > get (std::size_t size) const
 
template<class MI = A, class MA = B, class STEP = C>
std::enable_if_t< xtl::is_integral< MI >::value &&!xtl::is_integral< MA >::value &&xtl::is_integral< STEP >::value, xstepped_range< std::ptrdiff_t > > get (std::size_t size) const
 
template<class MI = A, class MA = B, class STEP = C>
std::enable_if_t< xtl::is_integral< MI >::value &&xtl::is_integral< MA >::value &&!xtl::is_integral< STEP >::value, xrange< std::ptrdiff_t > > get (std::size_t size) const
 
template<class MI = A, class MA = B, class STEP = C>
std::enable_if_t< !xtl::is_integral< MI >::value &&!xtl::is_integral< MA >::value &&xtl::is_integral< STEP >::value, xstepped_range< std::ptrdiff_t > > get (std::size_t size) const
 
template<class MI = A, class MA = B, class STEP = C>
std::enable_if_t< xtl::is_integral< MI >::value &&!xtl::is_integral< MA >::value &&!xtl::is_integral< STEP >::value, xrange< std::ptrdiff_t > > get (std::size_t size) const
 
template<class MI = A, class MA = B, class STEP = C>
std::enable_if_t< !xtl::is_integral< MI >::value &&xtl::is_integral< MA >::value &&!xtl::is_integral< STEP >::value, xrange< std::ptrdiff_t > > get (std::size_t size) const
 
template<class MI = A, class MA = B, class STEP = C>
std::enable_if_t< !xtl::is_integral< MI >::value &&!xtl::is_integral< MA >::value &&!xtl::is_integral< STEP >::value, xall< std::ptrdiff_t > > get (std::size_t size) const
 
start () const
 
B stop () const
 
C step () const
 

Detailed Description

template<class A, class B = A, class C = A>
struct xt::xrange_adaptor< A, B, C >

Definition at line 557 of file xslice.hpp.

Constructor & Destructor Documentation

◆ xrange_adaptor()

template<class A , class B = A, class C = A>
xt::xrange_adaptor< A, B, C >::xrange_adaptor ( A start_val,
B stop_val,
C step )
inline

Definition at line 559 of file xslice.hpp.

Member Function Documentation

◆ get() [1/8]

template<class A , class B = A, class C = A>
template<class MI = A, class MA = B, class STEP = C>
std::enable_if_t< xtl::is_integral< MI >::value &&xtl::is_integral< MA >::value &&xtl::is_integral< STEP >::value, xstepped_range< std::ptrdiff_t > > xt::xrange_adaptor< A, B, C >::get ( std::size_t size) const
inline

Definition at line 570 of file xslice.hpp.

◆ get() [2/8]

template<class A , class B = A, class C = A>
template<class MI = A, class MA = B, class STEP = C>
std::enable_if_t< !xtl::is_integral< MI >::value &&xtl::is_integral< MA >::value &&xtl::is_integral< STEP >::value, xstepped_range< std::ptrdiff_t > > xt::xrange_adaptor< A, B, C >::get ( std::size_t size) const
inline

Definition at line 579 of file xslice.hpp.

◆ get() [3/8]

template<class A , class B = A, class C = A>
template<class MI = A, class MA = B, class STEP = C>
std::enable_if_t< xtl::is_integral< MI >::value &&!xtl::is_integral< MA >::value &&xtl::is_integral< STEP >::value, xstepped_range< std::ptrdiff_t > > xt::xrange_adaptor< A, B, C >::get ( std::size_t size) const
inline

Definition at line 588 of file xslice.hpp.

◆ get() [4/8]

template<class A , class B = A, class C = A>
template<class MI = A, class MA = B, class STEP = C>
std::enable_if_t< xtl::is_integral< MI >::value &&xtl::is_integral< MA >::value &&!xtl::is_integral< STEP >::value, xrange< std::ptrdiff_t > > xt::xrange_adaptor< A, B, C >::get ( std::size_t size) const
inline

Definition at line 598 of file xslice.hpp.

◆ get() [5/8]

template<class A , class B = A, class C = A>
template<class MI = A, class MA = B, class STEP = C>
std::enable_if_t< !xtl::is_integral< MI >::value &&!xtl::is_integral< MA >::value &&xtl::is_integral< STEP >::value, xstepped_range< std::ptrdiff_t > > xt::xrange_adaptor< A, B, C >::get ( std::size_t size) const
inline

Definition at line 607 of file xslice.hpp.

◆ get() [6/8]

template<class A , class B = A, class C = A>
template<class MI = A, class MA = B, class STEP = C>
std::enable_if_t< xtl::is_integral< MI >::value &&!xtl::is_integral< MA >::value &&!xtl::is_integral< STEP >::value, xrange< std::ptrdiff_t > > xt::xrange_adaptor< A, B, C >::get ( std::size_t size) const
inline

Definition at line 618 of file xslice.hpp.

◆ get() [7/8]

template<class A , class B = A, class C = A>
template<class MI = A, class MA = B, class STEP = C>
std::enable_if_t< !xtl::is_integral< MI >::value &&xtl::is_integral< MA >::value &&!xtl::is_integral< STEP >::value, xrange< std::ptrdiff_t > > xt::xrange_adaptor< A, B, C >::get ( std::size_t size) const
inline

Definition at line 627 of file xslice.hpp.

◆ get() [8/8]

template<class A , class B = A, class C = A>
template<class MI = A, class MA = B, class STEP = C>
std::enable_if_t< !xtl::is_integral< MI >::value &&!xtl::is_integral< MA >::value &&!xtl::is_integral< STEP >::value, xall< std::ptrdiff_t > > xt::xrange_adaptor< A, B, C >::get ( std::size_t size) const
inline

Definition at line 636 of file xslice.hpp.

◆ start()

template<class A , class B = A, class C = A>
A xt::xrange_adaptor< A, B, C >::start ( ) const
inline

Definition at line 641 of file xslice.hpp.

◆ step()

template<class A , class B = A, class C = A>
C xt::xrange_adaptor< A, B, C >::step ( ) const
inline

Definition at line 651 of file xslice.hpp.

◆ stop()

template<class A , class B = A, class C = A>
B xt::xrange_adaptor< A, B, C >::stop ( ) const
inline

Definition at line 646 of file xslice.hpp.


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