OpenFPM_data  0.1.0
Project that contain the implementation and interfaces for basic structure like vectors, grids, graph ... .
 All Data Structures Namespaces Functions Variables Typedefs Friends
reduce_type.hpp
1 // This class define several reduce type
2 
3 template <class T>
4 struct reduce_type
5 {
6  typedef T type;
7 };
8 
9 template<> struct reduce_type<float[]>
10 {
11  typedef float type;
12 };
13 
14 template<> struct reduce_type<double[]>
15 {
16  typedef double type;
17 };
18 
19 
20 template<> struct reduce_type<int[]>
21 {
22  typedef int type;
23 };