diff --git a/examples/sparse/testMMdouble.cpp b/examples/sparse/testMMdouble.cpp index f041efd6..3560b5ba 100644 --- a/examples/sparse/testMMdouble.cpp +++ b/examples/sparse/testMMdouble.cpp @@ -60,17 +60,17 @@ test(int argc, char* argv[], CSRMatrix& A) { } spss.solve(b.data(), x.data()); - // std::size_t subs = 0, zeros = 0; - // auto err0 = spss.subnormals(subs, zeros); - // std::cout << "# SUBNORMALS = " << subs - // << " ZEROS = " << zeros - // << " (" << err0 << ")" << std::endl; + std::size_t subs = 0, zeros = 0; + auto err0 = spss.subnormals(subs, zeros); + std::cout << "# SUBNORMALS = " << subs + << " ZEROS = " << zeros + << " (" << err0 << ")" << std::endl; - // integer_t neg, zero, pos; - // auto err = spss.inertia(neg, zero, pos); - // std::cout << "# INERTIA neg,zero,pos = " - // << neg << ", " << zero << ", " << pos - // << " (" << err << ")" << std::endl; + integer_t neg, zero, pos; + auto err = spss.inertia(neg, zero, pos); + std::cout << "# INERTIA neg,zero,pos = " + << neg << ", " << zero << ", " << pos + << " (" << err << ")" << std::endl; std::cout << "# COMPONENTWISE SCALED RESIDUAL = " << A.max_scaled_residual(x.data(), b.data()) << std::endl; diff --git a/examples/sparse/testMMdoubleMPIDist.cpp b/examples/sparse/testMMdoubleMPIDist.cpp index 56fd8147..b57d1fbf 100644 --- a/examples/sparse/testMMdoubleMPIDist.cpp +++ b/examples/sparse/testMMdoubleMPIDist.cpp @@ -75,19 +75,19 @@ test(int argc, char* argv[], CSRMatrix& A) { } spss.solve(b.data(), x.data()); - // std::size_t subs = 0, zeros = 0; - // auto err0 = spss.subnormals(subs, zeros); - // if (!rank) - // std::cout << "# SUBNORMALS = " << subs - // << " ZEROS = " << zeros - // << " (" << err0 << ")" << std::endl; - - // integer neg, zero, pos; - // auto err = spss.inertia(neg, zero, pos); - // if (!rank) - // std::cout << "# INERTIA neg,zero,pos = " - // << neg << ", " << zero << ", " << pos - // << " (" << err << ")" << std::endl; + std::size_t subs = 0, zeros = 0; + auto err0 = spss.subnormals(subs, zeros); + if (!rank) + std::cout << "# SUBNORMALS = " << subs + << " ZEROS = " << zeros + << " (" << err0 << ")" << std::endl; + + integer neg, zero, pos; + auto err = spss.inertia(neg, zero, pos); + if (!rank) + std::cout << "# INERTIA neg,zero,pos = " + << neg << ", " << zero << ", " << pos + << " (" << err << ")" << std::endl; auto scaled_res = Adist.max_scaled_residual(x.data(), b.data()); if (!rank)