Apache Arrow (C++)
A columnar in-memory analytics layer designed to accelerate big data.
Public Types | Public Member Functions | List of all members
arrow::py::Ndarray1DIndexer< T > Class Template Reference

Indexing convenience for interacting with strided 1-dim ndarray objects. More...

#include <arrow/python/numpy-internal.h>

Public Types

typedef int64_t size_type
 

Public Member Functions

 Ndarray1DIndexer ()
 
 Ndarray1DIndexer (PyArrayObject *arr)
 
void Init (PyArrayObject *arr)
 
 ~Ndarray1DIndexer ()
 
int64_t size () const
 
T * data () const
 
bool is_strided () const
 
T & operator[] (size_type index)
 
T & operator[] (size_type index) const
 

Detailed Description

template<typename T>
class arrow::py::Ndarray1DIndexer< T >

Indexing convenience for interacting with strided 1-dim ndarray objects.

Member Typedef Documentation

◆ size_type

template<typename T >
typedef int64_t arrow::py::Ndarray1DIndexer< T >::size_type

Constructor & Destructor Documentation

◆ Ndarray1DIndexer() [1/2]

template<typename T >
arrow::py::Ndarray1DIndexer< T >::Ndarray1DIndexer ( )
inline

◆ Ndarray1DIndexer() [2/2]

template<typename T >
arrow::py::Ndarray1DIndexer< T >::Ndarray1DIndexer ( PyArrayObject *  arr)
inlineexplicit

◆ ~Ndarray1DIndexer()

template<typename T >
arrow::py::Ndarray1DIndexer< T >::~Ndarray1DIndexer ( )
inline

Member Function Documentation

◆ data()

template<typename T >
T* arrow::py::Ndarray1DIndexer< T >::data ( ) const
inline

◆ Init()

template<typename T >
void arrow::py::Ndarray1DIndexer< T >::Init ( PyArrayObject *  arr)
inline

◆ is_strided()

template<typename T >
bool arrow::py::Ndarray1DIndexer< T >::is_strided ( ) const
inline

◆ operator[]() [1/2]

template<typename T >
T& arrow::py::Ndarray1DIndexer< T >::operator[] ( size_type  index)
inline

◆ operator[]() [2/2]

template<typename T >
T& arrow::py::Ndarray1DIndexer< T >::operator[] ( size_type  index) const
inline

◆ size()

template<typename T >
int64_t arrow::py::Ndarray1DIndexer< T >::size ( ) const
inline

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