26template <
int num_dimensions,
class T1,
class T2,
class scaleT>
33template <
int num_dimensions,
class T1,
class T2,
class scaleT>
34Array<num_dimensions, T2>
43template <
int num_dimensions,
class T1,
class T2,
class scaleT>
defines the stir::Array class for multi-dimensional (numeric) arrays
This file declares the class stir::NumericInfo.
This class defines multi-dimensional (numeric) arrays.
Definition Array.h:78
full_iterator begin_all()
start value for iterating through all elements in the array, see full_iterator
Definition Array.inl:213
full_iterator end_all()
end value for iterating through all elements in the array, see full_iterator
Definition Array.inl:185
class NumericInfo<NUMBER> defines properties for the type NUMBER.
Definition NumericInfo.h:68
This file declares the stir::convert_range and stir::find_scale_factor functions.
void convert_range(const OutputIteratorT &out_begin, scaleT &scale_factor, const InputIteratorT &in_begin, const InputIteratorT &in_end)
Converts the data in the input range to the output range (with elements of different types) such that...
Definition convert_range.inl:129
void find_scale_factor(scaleT &scale_factor, const Array< num_dimensions, T1 > &data_in, const NumericInfo< T2 > info_for_out_type)
A function that finds a scale factor to use when converting data to a new type.
Definition convert_array.inl:28
Array< num_dimensions, T2 > convert_array(scaleT &scale_factor, const Array< num_dimensions, T1 > &data_in, const NumericInfo< T2 > info2)
A function that returns a new Array (of the same dimension) with elements of type T2.
Definition convert_array.inl:35