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<std::convertible_to< T > S>
 operator xnewaxis< S > () const noexcept
template<std::convertible_to< T > S>
xnewaxis< S > convert () 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_type & derived_cast () noexcept

Additional Inherited Members

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

Detailed Description

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

Definition at line 252 of file xslice.hpp.

Member Typedef Documentation

◆ self_type

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

Definition at line 257 of file xslice.hpp.

◆ size_type

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

Definition at line 256 of file xslice.hpp.

Member Function Documentation

◆ contains()

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

Definition at line 1257 of file xslice.hpp.

◆ convert()

template<class T>
template<std::convertible_to< T > S>
xnewaxis< S > xt::xnewaxis< T >::convert ( ) const
inlinenoexcept

Definition at line 1221 of file xslice.hpp.

◆ operator xnewaxis< S >()

template<class T>
template<std::convertible_to< T > S>
xt::xnewaxis< T >::operator xnewaxis< S > ( ) const
inlinenoexcept

Definition at line 1214 of file xslice.hpp.

◆ operator!=()

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

Definition at line 1269 of file xslice.hpp.

◆ operator()()

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

Definition at line 1227 of file xslice.hpp.

◆ operator==()

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

Definition at line 1263 of file xslice.hpp.

◆ revert_index()

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

Definition at line 1251 of file xslice.hpp.

◆ size()

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

Definition at line 1233 of file xslice.hpp.

◆ step_size() [1/2]

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

Definition at line 1239 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 1245 of file xslice.hpp.


The documentation for this class was generated from the following file:
  • /home/runner/work/xtensor/xtensor/include/xtensor/views/xslice.hpp