Skip to content

Commit

Permalink
kokkos#6805: some formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nmm0 committed Mar 7, 2024
1 parent 854fbf0 commit 741df00
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/src/View/MDSpan/Kokkos_MDSpan_Extents.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ struct DataTypeFromExtents {
using type = typename ::Kokkos::Impl::ViewDataType<T, dimension_type>::type;
};

/// Convert from a mdspan extent to a Kokkos extent, inserting 0s for static extents
template<class Extents>
auto dimension_from_extent(const Extents &e, std::size_t r) noexcept
{
/// Convert from a mdspan extent to a Kokkos extent, inserting 0s for static
/// extents
template <class Extents>
auto dimension_from_extent(const Extents &e, std::size_t r) noexcept {
return Extents::static_extent(r) == dynamic_extent ? e.extent(r) : 0;
}
} // namespace Kokkos::Experimental::Impl
Expand Down

0 comments on commit 741df00

Please sign in to comment.