From 3d8e179aa26772e219c697101d6ce2c45ff0247e Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Thu, 27 Jan 2011 18:02:49 +0100 Subject: fix MaxCols in ComplexEigenSolver which was causing memory allocation instead of static allocation in the nomalloc test. Uncomment commenetd parts of the nomalloc test since now matrix-matrix products are safe. --- test/nomalloc.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'test/nomalloc.cpp') diff --git a/test/nomalloc.cpp b/test/nomalloc.cpp index 0e3caa4ae..c6f24c035 100644 --- a/test/nomalloc.cpp +++ b/test/nomalloc.cpp @@ -70,12 +70,7 @@ template void nomalloc(const MatrixType& m) VERIFY_IS_APPROX((m1+m2)*s1, s1*m1+s1*m2); VERIFY_IS_APPROX((m1+m2)(r,c), (m1(r,c))+(m2(r,c))); VERIFY_IS_APPROX(m1.cwiseProduct(m1.block(0,0,rows,cols)), (m1.array()*m1.array()).matrix()); - if (MatrixType::RowsAtCompileTime @@ -110,7 +105,7 @@ void ctms_decompositions() // Eigenvalues module Eigen::HessenbergDecomposition hessDecomp; hessDecomp.compute(complexA); Eigen::ComplexSchur cSchur(size); cSchur.compute(complexA); - Eigen::ComplexEigenSolver cEigSolver; //cEigSolver.compute(complexA); // NOTE: Commented-out because makes test fail (L135 of ComplexEigenSolver.h has a product that allocates on the stack) + Eigen::ComplexEigenSolver cEigSolver; cEigSolver.compute(complexA); Eigen::EigenSolver eigSolver; eigSolver.compute(A); Eigen::SelfAdjointEigenSolver saEigSolver(size); saEigSolver.compute(saA); Eigen::Tridiagonalization tridiag; tridiag.compute(saA); -- cgit v1.2.3