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 1709 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 1745 of file numpy.h.

◆ container_type

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

Definition at line 1711 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 1713 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 1740 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 1773 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 1747 of file numpy.h.

◆ operator++()

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

Definition at line 1727 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 1781 of file numpy.h.

◆ m_index

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

Definition at line 1780 of file numpy.h.

◆ m_shape

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

Definition at line 1779 of file numpy.h.


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


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:10:01