From 302e66ca0d254efc147e02e09c3f0635a194e4e4 Mon Sep 17 00:00:00 2001 From: Kyle Shores Date: Mon, 23 Sep 2024 15:03:13 -0500 Subject: [PATCH] lu decomp --- test/unit/solver/test_lu_decomposition_policy.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unit/solver/test_lu_decomposition_policy.hpp b/test/unit/solver/test_lu_decomposition_policy.hpp index 041282fee..f52824bdc 100644 --- a/test/unit/solver/test_lu_decomposition_policy.hpp +++ b/test/unit/solver/test_lu_decomposition_policy.hpp @@ -103,7 +103,7 @@ void testDenseMatrix() bool is_singular{ false }; lud.template Decompose(A, LU.first, LU.second, is_singular); check_results( - A, LU.first, LU.second, [&](const double a, const double b) -> void { EXPECT_NEAR(a, b, 1.0e-5); }); + A, LU.first, LU.second, [&](const double a, const double b) -> void { EXPECT_NEAR(a, b, 1.0e-10); }); } template @@ -153,7 +153,7 @@ void testRandomMatrix(std::size_t number_of_blocks) bool is_singular{ false }; lud.template Decompose(A, LU.first, LU.second, is_singular); check_results( - A, LU.first, LU.second, [&](const double a, const double b) -> void { EXPECT_NEAR(a, b, 1.0e-5); }); + A, LU.first, LU.second, [&](const double a, const double b) -> void { EXPECT_NEAR(a, b, 1.0e-10); }); } template @@ -176,5 +176,5 @@ void testDiagonalMatrix(std::size_t number_of_blocks) bool is_singular{ false }; lud.template Decompose(A, LU.first, LU.second, is_singular); check_results( - A, LU.first, LU.second, [&](const double a, const double b) -> void { EXPECT_NEAR(a, b, 1.0e-5); }); + A, LU.first, LU.second, [&](const double a, const double b) -> void { EXPECT_NEAR(a, b, 1.0e-10); }); } \ No newline at end of file