Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
multi_array_iterator< N > Class Template Reference

#include <numpy.h>

Public Types

using container_type = std::vector< ssize_t >
 

Public Member Functions

template<size_t K, class T = void>
Tdata () const
 
 multi_array_iterator (const std::array< buffer_info, N > &buffers, const container_type &shape)
 
multi_array_iteratoroperator++ ()
 

Private Types

using common_iter = common_iterator
 

Private Member Functions

void increment_common_iterator (size_t dim)
 
void init_common_iterator (const buffer_info &buffer, const container_type &shape, common_iter &iterator, container_type &strides)
 

Private Attributes

std::array< common_iter, Nm_common_iterator
 
container_type m_index
 
container_type m_shape
 

Detailed Description

template<size_t N>
class multi_array_iterator< N >

Definition at line 1564 of file numpy.h.

Member Typedef Documentation

◆ common_iter

template<size_t N>
using multi_array_iterator< N >::common_iter = common_iterator
private

Definition at line 1600 of file numpy.h.

◆ container_type

template<size_t N>
using multi_array_iterator< N >::container_type = std::vector<ssize_t>

Definition at line 1566 of file numpy.h.

Constructor & Destructor Documentation

◆ multi_array_iterator()

template<size_t N>
multi_array_iterator< N >::multi_array_iterator ( const std::array< buffer_info, N > &  buffers,
const container_type shape 
)
inline

Definition at line 1568 of file numpy.h.

Member Function Documentation

◆ data()

template<size_t N>
template<size_t K, class T = void>
T* multi_array_iterator< N >::data ( ) const
inline

Definition at line 1595 of file numpy.h.

◆ increment_common_iterator()

template<size_t N>
void multi_array_iterator< N >::increment_common_iterator ( size_t  dim)
inlineprivate

Definition at line 1628 of file numpy.h.

◆ init_common_iterator()

template<size_t N>
void multi_array_iterator< N >::init_common_iterator ( const buffer_info buffer,
const container_type shape,
common_iter iterator,
container_type strides 
)
inlineprivate

Definition at line 1602 of file numpy.h.

◆ operator++()

template<size_t N>
multi_array_iterator& multi_array_iterator< N >::operator++ ( )
inline

Definition at line 1582 of file numpy.h.

Member Data Documentation

◆ m_common_iterator

template<size_t N>
std::array<common_iter, N> multi_array_iterator< N >::m_common_iterator
private

Definition at line 1636 of file numpy.h.

◆ m_index

template<size_t N>
container_type multi_array_iterator< N >::m_index
private

Definition at line 1635 of file numpy.h.

◆ m_shape

template<size_t N>
container_type multi_array_iterator< N >::m_shape
private

Definition at line 1634 of file numpy.h.


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


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:41:03