Skip to content

Commit

Permalink
Gesv: adding small comment for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
lucbv committed Apr 6, 2023
1 parent 788018f commit 397a3c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions batched/dense/impl/KokkosBatched_Gesv_Impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@ KOKKOS_INLINE_FUNCTION int TeamVectorStaticPivoting<MemberType>::invoke(
for (size_t i = 0; i < n; ++i) {
int row_index, col_index;
reducer_value_type value;
// Note: reduction_identity<value_type>::max() returns
// the samllest representable value of type value_type
value.val = Kokkos::reduction_identity<value_type>::max();
value.loc = Kokkos::reduction_identity<int>::min();
Kokkos::MaxLoc<value_type, int> reducer_value(value);
Expand Down

0 comments on commit 397a3c6

Please sign in to comment.