blob: d63f371a301b7aaea7d8dec14b2d1b9aeb4aa3c4 [file] [log] [blame]
Christoph Hertzberg41dcd042016-05-26 18:13:33 +02001static bool eigen_did_assert = false;
2#define eigen_assert(X) if(!eigen_did_assert && !(X)){ std::cout << "### Assertion raised in " << __FILE__ << ":" << __LINE__ << ":\n" #X << "\n### The following would happen without assertions:\n"; eigen_did_assert = true;}
3
Thomas Capricellib2e73292010-03-08 20:34:24 +01004#include <iostream>
Christoph Hertzberg41dcd042016-05-26 18:13:33 +02005#include <Eigen/Eigen>
Benoit Jacob62ec1dd2008-07-15 23:56:17 +00006
Jonas Adler815fa0d2015-07-22 12:29:18 +02007#ifndef M_PI
8#define M_PI 3.1415926535897932384626433832795
9#endif
10
11
Gael Guennebaud269f6832008-07-19 22:59:05 +000012using namespace Eigen;
Benoit Jacoba316cd82007-12-21 09:30:32 +000013using namespace std;
Benoit Jacob62ec1dd2008-07-15 23:56:17 +000014
Benoit Jacoba316cd82007-12-21 09:30:32 +000015int main(int, char**)
16{
Gael Guennebauddbefd7a2010-06-28 13:30:10 +020017 cout.precision(3);
Benoit Jacob62ec1dd2008-07-15 23:56:17 +000018 ${snippet_source_code}
19 return 0;
Benoit Jacoba316cd82007-12-21 09:30:32 +000020}