From 556a1fe5726c2c982f69ef8a8ba98315ccfb9085 Mon Sep 17 00:00:00 2001 From: nojhan Date: Thu, 15 Dec 2011 23:19:40 +0100 Subject: [PATCH] do not print failure data even in debug compilation --- test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test.cpp b/test.cpp index eeb7675..b903adb 100644 --- a/test.cpp +++ b/test.cpp @@ -163,14 +163,12 @@ void test( unsigned int M, unsigned int N, unsigned int F, unsigned int R, unsig // a variance-covariance matrix of size N*N CovarMat V = ublas::prod( ublas::trans(S), S ); assert( V.size1() == N && V.size2() == N ); - #ifndef NDEBUG if( R == 1 ) { std::cout << std::endl << "Covariance matrix:" << std::endl; std::cout << format(V) << std::endl; } #endif - for( typename AlgoMap::iterator ialgo = algos.begin(); ialgo != algos.end(); ++ialgo ) { // The LLT algorithm can fail on a sqrt(x<0) and throw an error // we thus count the failures @@ -182,9 +180,11 @@ void test( unsigned int M, unsigned int N, unsigned int F, unsigned int R, unsig } catch( cholesky::NotDefinitePositive & error ) { fails[ialgo->first]++; +/* #ifndef NDEBUG std::cout << "FAILED:\t" << error.what() << std::endl; #endif +*/ } } // for ialgo in algos