liyujie
2025-08-28 b3810562527858a3b3d98ffa6e9c9c5b0f4a9a8e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
static bool eigen_did_assert = false;
#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;}
 
#include <iostream>
#include <Eigen/Eigen>
 
#ifndef M_PI
#define M_PI 3.1415926535897932384626433832795
#endif
 
 
using namespace Eigen;
using namespace std;
 
int main(int, char**)
{
  cout.precision(3);
  ${snippet_source_code}
  return 0;
}