00001 // $Id: Vector.h,v 1.2 2005/11/08 16:31:03 mato Exp $ 00002 // ============================================================================ 00003 #ifndef GAUDIPYTHON_VECTOR_H 00004 #define GAUDIPYTHON_VECTOR_H 1 00005 // ============================================================================ 00006 // Include files 00007 // ============================================================================ 00008 // STD & STL 00009 // ============================================================================ 00010 #include <vector> 00011 #include <functional> 00012 // ============================================================================ 00013 // GaudiPython 00014 // ============================================================================ 00015 #include "GaudiPython/GaudiPython.h" 00016 // ============================================================================ 00017 00018 namespace GaudiPython 00019 { 00021 typedef std::vector<double> Vector ; 00022 typedef Vector Row ; 00023 typedef std::vector<Row> Matrix ; 00024 00030 template <class TYPE> 00031 struct _identity : 00032 public std::unary_function<TYPE,TYPE> 00033 { 00034 inline Vector::value_type operator() 00035 ( const Vector::value_type& value ) const { return value ; } 00036 }; 00037 00038 }; // end of namespace GaudiPython 00039 #endif // GAUDIPYTHON_VECTOR_H