The Gaudi Framework  master (82fdf313)
Loading...
Searching...
No Matches
Vector.h
Go to the documentation of this file.
1/***********************************************************************************\
2* (c) Copyright 1998-2025 CERN for the benefit of the LHCb and ATLAS collaborations *
3* *
4* This software is distributed under the terms of the Apache version 2 licence, *
5* copied verbatim in the file "LICENSE". *
6* *
7* In applying this licence, CERN does not waive the privileges and immunities *
8* granted to it by virtue of its status as an Intergovernmental Organization *
9* or submit itself to any jurisdiction. *
10\***********************************************************************************/
11#pragma once
12// ============================================================================
13// Include files
14// ============================================================================
15// STD & STL
16// ============================================================================
17#include <functional>
18#include <vector>
19// ============================================================================
20// GaudiPython
21// ============================================================================
23// ============================================================================
24
25namespace GaudiPython {
27 typedef std::vector<double> Vector;
28 typedef Vector Row;
29 typedef std::vector<Row> Matrix;
30
36 struct _identity {
37 template <typename T>
38 T operator()( const T& value ) const {
39 return value;
40 }
41 };
42
43} // end of namespace GaudiPython
GaudiPython.h GaudiPython/GaudiPython.h.
Definition Algorithm.h:29
std::vector< Row > Matrix
Definition Vector.h:29
std::vector< double > Vector
useful type definition for implicit loos
Definition Vector.h:27
Vector Row
Definition Vector.h:28
It is here due to 'missing'(?) std::identity.
Definition Vector.h:36
T operator()(const T &value) const
Definition Vector.h:38