ATLAS Offline Software
Loading...
Searching...
No Matches
AmgStringHelpers.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5/*
6 * eigen_migration
7 * AmgStringHelpers.h
8 *
9 * Created on: Feb 25, 2014
10 * Author: rbianchi <Riccardo.Maria.Bianchi@cern.ch>
11 *
12 */
13
14#ifndef AMGSTRINGHELPERS_H_
15#define AMGSTRINGHELPERS_H_
16
18
19namespace Amg{
20
21
25template<class T>
26std::string AsString(const T& m) {
27 std::stringstream tmp;
28 tmp << m; // we just use eigen classes capability to write to std::ostream
29 return tmp.str();
30}
31
32
33
34} // end of namespace Amg
35
36#endif /* AMGSTRINGHELPERS_H_ */
Definition of ATLAS Math & Geometry primitives (Amg)
std::string AsString(const T &m)
write an Amg Eigen object to std::string