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_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 262 of file xslice.hpp.

Member Typedef Documentation

◆ self_type

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

Definition at line 267 of file xslice.hpp.

◆ size_type

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

Definition at line 266 of file xslice.hpp.

Member Function Documentation

◆ contains()

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

Definition at line 1262 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 1226 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 1219 of file xslice.hpp.

◆ operator!=()

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

Definition at line 1274 of file xslice.hpp.

◆ operator()()

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

Definition at line 1232 of file xslice.hpp.

◆ operator==()

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

Definition at line 1268 of file xslice.hpp.

◆ revert_index()

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

Definition at line 1256 of file xslice.hpp.

◆ size()

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

Definition at line 1238 of file xslice.hpp.

◆ step_size() [1/2]

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

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


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