15 #define EIGEN_STACK_ALLOCATION_LIMIT 100000000 20 #define CHECK_MEMLEAK(OP) { \ 21 AnnoyingScalar::countdown = 100; \ 22 int before = AnnoyingScalar::instances; \ 23 bool exception_thrown = false; \ 25 catch (my_exception) { \ 26 exception_thrown = true; \ 27 VERIFY(AnnoyingScalar::instances==before && "memory leak detected in " && EIGEN_MAKESTRING(OP)); \ 29 VERIFY( (AnnoyingScalar::dont_throw) || (exception_thrown && " no exception thrown in " && EIGEN_MAKESTRING(OP)) ); \ 40 VectorType
v0(n),
v1(n);
41 MatrixType m0(n,n),
m1(n,n),
m2(n,n);
42 v0.setOnes(); v1.setOnes();
43 m0.setOnes();
m1.setOnes(); m2.setOnes();
#define EIGEN_MAKESTRING(a)
Scalar EIGEN_BLAS_FUNC() dot(int *n, RealScalar *px, int *incx, RealScalar *py, int *incy)
#define CHECK_MEMLEAK(OP)
The matrix class, also used for vectors and row-vectors.
EIGEN_DECLARE_TEST(exceptions)