OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
reduce_type.hpp
1// This class define several reduce type
2
4template <class T>
6{
7 typedef T type;
8};
9
11template<> struct reduce_type<float[]>
12{
14 typedef float type;
15};
16
18template<> struct reduce_type<double[]>
19{
21 typedef double type;
22};
23
25template<> struct reduce_type<int[]>
26{
28 typedef int type;
29};
double type
define the double
float type
define the float
int type
define the int
In general a reduction of a type T produce a type T.