Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
EigenZeroDefs.h
Go to the documentation of this file.
1 // This file's extension implies that it's C, but it's really -*- C++ -*-.
2 /*
3  * Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration.
4  */
13 #ifndef XAODMEASUREMENTBASE_EIGENZERODEFS_H
14 #define XAODMEASUREMENTBASE_EIGENZERODEFS_H
15 
16 
19 
20 
21 namespace SG {
22 
23 
24 // The default Matrix constructor does not initialize the matrix contents.
25 // Specialize this for Matrix, so that when we have Matrix auxiliary variables,
26 // they'll be fully initialized after a resize, etc.
27 template <typename SCALAR, int ROWS, int COLS, int OPTIONS, int MAXROWS, int MAXCOLS>
28 struct Zero<Eigen::Matrix<SCALAR, ROWS, COLS, OPTIONS, MAXROWS, MAXCOLS> >
29 {
30  typedef Eigen::Matrix<SCALAR, ROWS, COLS, OPTIONS, MAXROWS, MAXCOLS> Matrix;
31  static Matrix zero()
32  {
33  Matrix m;
34  m.setZero();
35  return m;
36  }
37 };
38 
39 
40 } // namespace SG
41 
42 
43 #endif // not XAODMEASUREMENTBASE_EIGENZERODEFS_H
Matrix
Definition: Trigger/TrigT1/TrigT1RPChardware/TrigT1RPChardware/Matrix.h:15
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
SG::Zero< Eigen::Matrix< SCALAR, ROWS, COLS, OPTIONS, MAXROWS, MAXCOLS > >::zero
static Matrix zero()
Definition: EigenZeroDefs.h:31
SG::Zero< Eigen::Matrix< SCALAR, ROWS, COLS, OPTIONS, MAXROWS, MAXCOLS > >::Matrix
Eigen::Matrix< SCALAR, ROWS, COLS, OPTIONS, MAXROWS, MAXCOLS > Matrix
Definition: EigenZeroDefs.h:30
AuxDataTraits.h
Allow customizing how aux data types are treated.
EventPrimitives.h
SG::Zero
Helper to specialize how to make an initialized instance of T.
Definition: AuxDataTraits.h:135
python.SystemOfUnits.m
float m
Definition: SystemOfUnits.py:105