diff --git a/src/batched/dense/impl/KokkosBatched_Gesv_Impl.hpp b/src/batched/dense/impl/KokkosBatched_Gesv_Impl.hpp index a05386642e..5a07a58990 100644 --- a/src/batched/dense/impl/KokkosBatched_Gesv_Impl.hpp +++ b/src/batched/dense/impl/KokkosBatched_Gesv_Impl.hpp @@ -224,7 +224,7 @@ KOKKOS_INLINE_FUNCTION int TeamStaticPivoting::invoke( reducer_value); row_index = value.loc; value.loc = 0; - value.val = 0.; + value.val = Kokkos::ArithTraits::zero(); Kokkos::parallel_reduce( Kokkos::TeamThreadRange(member, n), [&](const int &j, reducer_value_type &update) { @@ -329,7 +329,7 @@ KOKKOS_INLINE_FUNCTION int TeamVectorStaticPivoting::invoke( reducer_value); row_index = value.loc; value.loc = 0; - value.val = 0.; + value.val = Kokkos::ArithTraits::zero(); Kokkos::parallel_reduce( Kokkos::TeamVectorRange(member, n), [&](const int &j, reducer_value_type &update) {