Skip to content

Commit

Permalink
Update Kokkos::Array interface
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipFackler committed Sep 6, 2024
1 parent 08b528c commit ff98194
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions include/plsm/detail/KokkosExtension.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ namespace Kokkos
* @brief Provide begin/end pairs so that Kokkos::Array can be used in a
* range-based for loop
*/
template <typename T, std::size_t N, typename P>
template <typename T, std::size_t N>
KOKKOS_INLINE_FUNCTION
auto
begin(Array<T, N, P>& a) noexcept
begin(Array<T, N>& a) noexcept
{
return a.data();
}
Expand All @@ -24,10 +24,10 @@ begin(Array<T, N, P>& a) noexcept
* @brief Provide begin/end pairs so that Kokkos::Array can be used in a
* range-based for loop
*/
template <typename T, std::size_t N, typename P>
template <typename T, std::size_t N>
KOKKOS_INLINE_FUNCTION
auto
end(Array<T, N, P>& a) noexcept
end(Array<T, N>& a) noexcept
{
return a.data() + static_cast<std::ptrdiff_t>(N);
}
Expand All @@ -36,10 +36,10 @@ end(Array<T, N, P>& a) noexcept
* @brief Provide begin/end pairs so that Kokkos::Array can be used in a
* range-based for loop
*/
template <typename T, std::size_t N, typename P>
template <typename T, std::size_t N>
KOKKOS_INLINE_FUNCTION
auto
begin(const Array<T, N, P>& a) noexcept
begin(const Array<T, N>& a) noexcept
{
return a.data();
}
Expand All @@ -48,10 +48,10 @@ begin(const Array<T, N, P>& a) noexcept
* @brief Provide begin/end pairs so that Kokkos::Array can be used in a
* range-based for loop
*/
template <typename T, std::size_t N, typename P>
template <typename T, std::size_t N>
KOKKOS_INLINE_FUNCTION
auto
end(const Array<T, N, P>& a) noexcept
end(const Array<T, N>& a) noexcept
{
return a.data() + static_cast<std::ptrdiff_t>(N);
}
Expand Down

0 comments on commit ff98194

Please sign in to comment.