12 #ifndef __stir_array_index_functions_h_ 13 #define __stir_array_index_functions_h_ 37 template <
int num_dimensions,
int num_dimensions2,
typename elemT>
38 inline const Array<num_dimensions - num_dimensions2, elemT>&
get(
const Array<num_dimensions, elemT>& a,
39 const BasicCoordinate<num_dimensions2, int>& c);
43 template <
int num_dimensions,
typename elemT>
44 inline const elemT&
get(
const Array<num_dimensions, elemT>& a,
const BasicCoordinate<num_dimensions, int>& c);
50 template <
int num_dimensions,
typename T>
51 inline BasicCoordinate<num_dimensions, int>
get_min_indices(
const Array<num_dimensions, T>& a);
68 template <
int num_dimensions,
typename T,
int num_dimensions2>
69 inline bool next(BasicCoordinate<num_dimensions, int>& indices,
const Array<num_dimensions2, T>& a);
BasicCoordinate< num_dimensions, int > get_min_indices(const Array< num_dimensions, T > &a)
Get the first multi-dimensional index of the array.
Definition: array_index_functions.inl:100
implementation of functions in stir/array_index_functions.h
defines the Array class for multi-dimensional (numeric) arrays
This file declares class stir::BasicCoordinate and some functions acting on stir::BasicCoordinate obj...
bool next(BasicCoordinate< num_dimensions, int > &indices, const Array< num_dimensions2, T > &a)
Given an index into an array, increment it to the next one.
Definition: array_index_functions.inl:107