Clang-format tests, examples, libraries, benchmarks, etc.

This commit is contained in:
Antonio Sánchez
2023-12-05 21:22:55 +00:00
committed by Rasmus Munk Larsen
parent 3252ecc7a4
commit 46e9cdb7fe
876 changed files with 33453 additions and 37795 deletions

View File

@@ -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
{