diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-02-28 12:38:12 +0000 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-02-28 12:38:12 +0000 |
commit | 6907886a156c4b94ec7530351b271e1c1bc5b81b (patch) | |
tree | 9c9431ba83e0234e5f199031ed48915ad6365422 /doc | |
parent | c67e717404258d3625a74c67f50be34939af6d95 (diff) |
prefix global functions with ei_ as previous solution was rather
fragile. also fix compilation with g++ 4.3.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/benchmark.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/benchmark.cpp b/doc/benchmark.cpp index b2ab9a3b0..ad515e04e 100644 --- a/doc/benchmark.cpp +++ b/doc/benchmark.cpp @@ -1,8 +1,9 @@ // g++ -O3 -DNDEBUG benchmark.cpp -o benchmark && time ./benchmark - +#include <cstdlib> +#include <cmath> #include <Eigen/Core> -using namespace std; +//using namespace std; USING_PART_OF_NAMESPACE_EIGEN int main(int argc, char *argv[]) @@ -18,6 +19,6 @@ int main(int argc, char *argv[]) { m = I + 0.00005 * (m + m*m); } - cout << m << endl; + std::cout << m << std::endl; return 0; } |