STIR  6.2.0
Namespaces | Functions

implementation of functions in stir/array_index_functions.h More...

#include "stir/detail/test_if_1d.h"
#include <algorithm>

Namespaces

 stir
 Namespace for the STIR library (and some/most of its applications)
 
 stir::detail
 Namespace for the implementation details of the STIR library.
 

Functions

template<int num_dimensions, typename T >
BasicCoordinate< num_dimensions, int > stir::detail::get_min_indices_help (is_not_1d, const Array< num_dimensions, T > &a)
 
template<typename T >
BasicCoordinate< 1, int > stir::detail::get_min_indices_help (is_1d, const Array< 1, T > &a)
 
template<int num_dimensions2, typename T >
bool stir::detail::next_help (is_1d, BasicCoordinate< 1, int > &index, const Array< num_dimensions2, T > &a)
 
template<typename T , int num_dimensions, int num_dimensions2>
bool stir::detail::next_help (is_not_1d, BasicCoordinate< num_dimensions, int > &index, const Array< num_dimensions2, T > &a)
 
template<int num_dimensions, typename elemT >
const Array< num_dimensions - 1, elemT > & stir::get (const Array< num_dimensions, elemT > &a, const BasicCoordinate< 1, int > &c)
 
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...
 
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...
 

Detailed Description

implementation of functions in stir/array_index_functions.h

Author
Kris Thielemans