Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:57:45

0001 /***********************************************************************************\
0002 * (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations *
0003 *                                                                                   *
0004 * This software is distributed under the terms of the Apache version 2 licence,     *
0005 * copied verbatim in the file "LICENSE".                                            *
0006 *                                                                                   *
0007 * In applying this licence, CERN does not waive the privileges and immunities       *
0008 * granted to it by virtue of its status as an Intergovernmental Organization        *
0009 * or submit itself to any jurisdiction.                                             *
0010 \***********************************************************************************/
0011 #ifndef GAUDIPYTHON_VECTOR_H
0012 #define GAUDIPYTHON_VECTOR_H 1
0013 // ============================================================================
0014 // Include files
0015 // ============================================================================
0016 // STD & STL
0017 // ============================================================================
0018 #include <functional>
0019 #include <vector>
0020 // ============================================================================
0021 // GaudiPython
0022 // ============================================================================
0023 #include "GaudiPython/GaudiPython.h"
0024 // ============================================================================
0025 
0026 namespace GaudiPython {
0027   /// useful type definition for  implicit loos
0028   typedef std::vector<double> Vector;
0029   typedef Vector              Row;
0030   typedef std::vector<Row>    Matrix;
0031 
0032   /** @struct _identity
0033    *  It is here due to 'missing'(?) std::identity
0034    *  @author Vanya BELYAEV Ivan.Belyaev@lapp.in2p3.fr
0035    *  @date 2005-08-02
0036    */
0037   struct _identity {
0038     template <typename T>
0039     T operator()( const T& value ) const {
0040       return value;
0041     }
0042   };
0043 
0044 } // end of namespace GaudiPython
0045 #endif // GAUDIPYTHON_VECTOR_H