Skip to content

Commit

Permalink
fix: use EXPECT_NEAR_KK_REL for check
Browse files Browse the repository at this point in the history
Signed-off-by: Yuuichi Asahi <y.asahi@nr.titech.ac.jp>
  • Loading branch information
Yuuichi Asahi committed Oct 24, 2024
1 parent 1946c60 commit 8c02602
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions batched/dense/unit_test/Test_Batched_SerialPbtrs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ void impl_test_batched_pbtrs_analytical(const int N) {
// Check x0 = x1
for (int ib = 0; ib < N; ib++) {
for (int i = 0; i < BlkSize; i++) {
EXPECT_NEAR_KK(h_x0(ib, i), h_x_ref(ib, i), eps);
Test::EXPECT_NEAR_KK_REL(h_x0(ib, i), h_x_ref(ib, i), eps);
}
}
}
Expand Down Expand Up @@ -256,7 +256,7 @@ void impl_test_batched_pbtrs(const int N, const int k, const int BlkSize) {
// Check A * x0 = x_ref
for (int ib = 0; ib < N; ib++) {
for (int i = 0; i < BlkSize; i++) {
EXPECT_NEAR_KK(h_y0(ib, i), h_x_ref(ib, i), eps);
Test::EXPECT_NEAR_KK_REL(h_y0(ib, i), h_x_ref(ib, i), eps);
}
}
}
Expand Down

0 comments on commit 8c02602

Please sign in to comment.