12 #ifndef __stir_convert_array_H__ 13 #define __stir_convert_array_H__ 34 template <
int num_dimensions,
class elemT>
66 template <
int num_dimensions,
class T1,
class T2,
class scaleT>
102 template <
int num_dimensions,
class T1,
class T2,
class scaleT>
118 template <
int num_dimensions,
class T1,
class T2,
class scaleT>
class NumericInfo<NUMBER> defines properties for the type NUMBER.
Definition: convert_array.h:33
void convert_array(Array< num_dimensions, T2 > &data_out, scaleT &scale_factor, const Array< num_dimensions, T1 > &data_in)
Converts the data_in Array to data_out (with elements of different types) such that data_in == data_o...
Definition: convert_array.inl:45
implementation of stir::convert_array
basic configuration include file
This class defines multi-dimensional (numeric) arrays.
Definition: Array.h:73
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