initial commit

This commit is contained in:
huangweifeng
2026-10-22 09:23:54 +08:00
commit 63f557a39f
4448 changed files with 584487 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
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 <cassert>
#include <Eigen/Dense>
#include <Eigen/Sparse>
using namespace Eigen;
using namespace std;
int main(int, char**) {
cout.precision(3);
// intentionally remove indentation of snippet
{
${snippet_source_code}
}
return 0;
}