Tomographer
v5.2
Tomographer C++ Framework Documentation
|
Utility to iterate over a multidim array by increasing linear index. More...
#include <tomographer/tools/ezmatio.h>
Public Types | |
typedef IntType_ | IntType |
typedef std::vector< IntType > | VectorType |
Public Member Functions | |
IndexListIterator (const std::vector< IntType > &dims) | |
const std::vector< IntType > & | index () const |
IntType | linearIndex () const |
IntType | numel () const |
template<ENABLED_IF( IsRowMajor) > | |
IntType | increment () |
template<ENABLED_IF( !IsRowMajor) > | |
IntType | increment () |
IntType | operator++ () |
bool | valid () const |
Static Public Member Functions | |
template<bool IsRowMajor2 = false, typename IntType2 = int> | |
static const std::vector< IntType2 > & | forward_index (const IndexListIterator< IsRowMajor2, IntType2 > &index) |
template<bool IsRowMajor2 = false, typename IntType2 = int> | |
static std::vector< IntType2 > && | forward_index (IndexListIterator< IsRowMajor2, IntType2 > &&index) |
Static Public Attributes | |
static constexpr bool | IsRowMajor = IsRowMajor_ |
Utility to iterate over a multidim array by increasing linear index.