Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Namespaces | Functions
MatrixUtils.h File Reference
#include <CxxUtils/ArrayHelper.h>
#include <array>
Include dependency graph for MatrixUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 MuonR4
 This header ties the generic definitions in this package.
 

Functions

constexpr double MuonR4::sign (const double x)
 Returns the sign of a number. More...
 
constexpr unsigned int MuonR4::sumUp (unsigned k)
 Calculates the sum of 1 + 2 +3 +4 +... More...
 
template<unsigned int n>
constexpr unsigned int MuonR4::vecIdxFromSymMat (unsigned int i, unsigned k)
 If a n-dimensional Matrix is symmetric, it has n* (n+1) /2 parameters The following function returns the global index when filling the content of the matrix into a vector via for (i = 0; i < n; ++i) { for (k =i; k<n; ++k){ } }. More...
 
template<int n>
constexpr std::array< unsigned, 2 > MuonR4::symMatIdxFromVec (unsigned int k)
 Translates back the global index into the two matrix access indices under the assumption that the matrix is symmetric. More...