Skip to content

Commit 4bfb715

Browse files
committed
Batch - QR: fixing type issue in macro
Signed-off-by: Luc <[email protected]>
1 parent 3cc6d97 commit 4bfb715

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

batched/dense/unit_test/Test_Batched_SerialQR.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,8 @@ void test_QR_rectangular() {
230230
Test::EXPECT_NEAR_KK(A_h(2, 0), static_cast<Scalar>(0.), tol);
231231
Test::EXPECT_NEAR_KK_REL(A_h(2, 1), static_cast<Scalar>(1. / 3.), tol);
232232

233-
Test::EXPECT_NEAR_KK_REL(tau(0), 5. / 8., tol);
234-
Test::EXPECT_NEAR_KK_REL(tau(1), 10. / 18., tol);
233+
Test::EXPECT_NEAR_KK_REL(tau(0), static_cast<Scalar>(5. / 8.), tol);
234+
Test::EXPECT_NEAR_KK_REL(tau(1), static_cast<Scalar>(10. / 18.), tol);
235235

236236
Kokkos::parallel_for(
237237
"serialApplyQ", 1, KOKKOS_LAMBDA(int) {

0 commit comments

Comments
 (0)