mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Clang-format tests, examples, libraries, benchmarks, etc.
This commit is contained in:
committed by
Rasmus Munk Larsen
parent
3252ecc7a4
commit
46e9cdb7fe
@@ -1,5 +1,10 @@
|
||||
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;}
|
||||
#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>
|
||||
@@ -9,12 +14,10 @@ static bool eigen_did_assert = false;
|
||||
#define M_PI 3.1415926535897932384626433832795
|
||||
#endif
|
||||
|
||||
|
||||
using namespace Eigen;
|
||||
using namespace std;
|
||||
|
||||
int main(int, char**)
|
||||
{
|
||||
int main(int, char**) {
|
||||
cout.precision(3);
|
||||
// intentionally remove indentation of snippet
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user