STIR  6.2.0
Namespaces

a variety of useful functions for indexing stir::Array objects More...

#include "stir/Array.h"
#include "stir/BasicCoordinate.h"
#include "stir/array_index_functions.inl"

Go to the source code of this file.

Namespaces

 stir
 Namespace for the STIR library (and some/most of its applications)
 

Functions

template<int num_dimensions, int num_dimensions2, typename elemT >
const Array< num_dimensions - num_dimensions2, elemT > & stir::get (const Array< num_dimensions, elemT > &a, const BasicCoordinate< num_dimensions2, int > &c)
 an alternative for array indexing using BasicCoordinate objects More...
 
template<int num_dimensions, typename elemT >
const elemT & stir::get (const Array< num_dimensions, elemT > &a, const BasicCoordinate< num_dimensions, int > &c)
 an alternative for array indexing using BasicCoordinate objects More...
 
template<int num_dimensions, typename T >
BasicCoordinate< num_dimensions, int > stir::get_min_indices (const Array< num_dimensions, T > &a)
 Get the first multi-dimensional index of the array. More...
 
template<int num_dimensions, typename T , int num_dimensions2>
bool stir::next (BasicCoordinate< num_dimensions, int > &indices, const Array< num_dimensions2, T > &a)
 Given an index into an array, increment it to the next one. More...
 

Detailed Description

a variety of useful functions for indexing stir::Array objects

Author
Kris Thielemans