xtensor
Loading...
Searching...
No Matches
xt::xnewaxis< T > Class Template Reference
Inheritance diagram for xt::xnewaxis< T >:
xt::xslice< xnewaxis< T > >

Public Types

using size_type = T
 
using self_type = xnewaxis<T>
 
- Public Types inherited from xt::xslice< xnewaxis< T > >
using derived_type
 

Public Member Functions

template<class S , typename = std::enable_if_t<std::is_convertible<S, T>::value, void>>
 operator xnewaxis< S > () const noexcept
 
template<class S , typename = std::enable_if_t<std::is_convertible<S, T>::value, void>>
xnewaxis< Sconvert () const noexcept
 
size_type operator() (size_type i) const noexcept
 
size_type size () const noexcept
 
size_type step_size () const noexcept
 
size_type step_size (std::size_t i, std::size_t n=1) const noexcept
 
size_type revert_index (std::size_t i) const noexcept
 
bool contains (size_type i) const noexcept
 
bool operator== (const self_type &rhs) const noexcept
 
bool operator!= (const self_type &rhs) const noexcept
 
- Public Member Functions inherited from xt::xslice< xnewaxis< T > >
derived_typederived_cast () noexcept
 
const derived_typederived_cast () const noexcept
 

Additional Inherited Members

- Protected Member Functions inherited from xt::xslice< xnewaxis< T > >
 xslice (const xslice &)=default
 
 xslice (xslice &&)=default
 
xsliceoperator= (const xslice &)=default
 
xsliceoperator= (xslice &&)=default
 

Detailed Description

template<class T>
class xt::xnewaxis< T >

Definition at line 265 of file xslice.hpp.

Member Typedef Documentation

◆ self_type

template<class T >
using xt::xnewaxis< T >::self_type = xnewaxis<T>

Definition at line 270 of file xslice.hpp.

◆ size_type

template<class T >
using xt::xnewaxis< T >::size_type = T

Definition at line 269 of file xslice.hpp.

Member Function Documentation

◆ contains()

template<class T >
bool xt::xnewaxis< T >::contains ( size_type i) const
inlinenoexcept

Definition at line 1332 of file xslice.hpp.

◆ convert()

template<class T >
template<class S , typename >
xnewaxis< S > xt::xnewaxis< T >::convert ( ) const
inlinenoexcept

Definition at line 1296 of file xslice.hpp.

◆ operator xnewaxis< S >()

template<class T >
template<class S , typename >
xt::xnewaxis< T >::operator xnewaxis< S > ( ) const
inlinenoexcept

Definition at line 1289 of file xslice.hpp.

◆ operator!=()

template<class T >
bool xt::xnewaxis< T >::operator!= ( const self_type & rhs) const
inlinenoexcept

Definition at line 1344 of file xslice.hpp.

◆ operator()()

template<class T >
auto xt::xnewaxis< T >::operator() ( size_type i) const
inlinenoexcept

Definition at line 1302 of file xslice.hpp.

◆ operator==()

template<class T >
bool xt::xnewaxis< T >::operator== ( const self_type & rhs) const
inlinenoexcept

Definition at line 1338 of file xslice.hpp.

◆ revert_index()

template<class T >
auto xt::xnewaxis< T >::revert_index ( std::size_t i) const
inlinenoexcept

Definition at line 1326 of file xslice.hpp.

◆ size()

template<class T >
auto xt::xnewaxis< T >::size ( ) const
inlinenoexcept

Definition at line 1308 of file xslice.hpp.

◆ step_size() [1/2]

template<class T >
auto xt::xnewaxis< T >::step_size ( ) const
inlinenoexcept

Definition at line 1314 of file xslice.hpp.

◆ step_size() [2/2]

template<class T >
auto xt::xnewaxis< T >::step_size ( std::size_t i,
std::size_t n = 1 ) const
inlinenoexcept

Definition at line 1320 of file xslice.hpp.


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