1 #ifndef GsfMatrixTools_h_ 2 #define GsfMatrixTools_h_ 4 #define SMATRIX_USE_CONSTEXPR 6 #include "Math/SVector.h" 7 #include "Math/SMatrix.h" 17 template <
typename T,
unsigned int N>
20 for (
unsigned int i=0;
i<
N; ++
i ) result +=
matrix(
i,
i);
28 template<
typename T,
unsigned int N>
29 T trace(ROOT::Math::SMatrix<
T,
N,
N,ROOT::Math::MatRepSym<T,N> >
const &
a,
30 ROOT::Math::SMatrix<
T,
N,
N,ROOT::Math::MatRepSym<T,N> >
const &
b) {
37 for (;i1!=e1; i1++, i2++)
41 for (
unsigned int i=0;
i<
N;++
i)