1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#ifndef TrackReco_Vector_h
#define TrackReco_Vector_h
#include "Rtypes.h"
#define SMATRIX_USE_CONSTEXPR
#include "Math/SVector.h"
namespace math {
/// fixed size vector
template <unsigned int N>
struct VectorD {
typedef ROOT::Math::SVector<double, N> type;
};
/// fixed size vector
template <unsigned int N>
struct VectorF {
typedef ROOT::Math::SVector<float, N> type;
};
/// fixed size vector
template <unsigned int N>
struct Vector {
typedef typename VectorD<N>::type type;
};
} // namespace math
#endif
|