alpaka-group / llama

A Low-Level Abstraction of Memory Access
https://llama-doc.rtfd.io/
Mozilla Public License 2.0
80 stars 10 forks source link

Add `View::extents()` #718

Closed bernhardmgruber closed 1 year ago

bernhardmgruber commented 1 year ago

Since it's quite common to query the extents of a view, here is a shortcut so you don't need to write view.mapping().extents(). This also opens the door for slices SubView to have different sizes (not in this PR).

codecov[bot] commented 1 year ago

Codecov Report

Merging #718 (ae90102) into develop (da10cd8) will increase coverage by 0.00%. The diff coverage is 100.00%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #718 +/- ## ======================================== Coverage 98.78% 98.78% ======================================== Files 74 74 Lines 7157 7158 +1 ======================================== + Hits 7070 7071 +1 Misses 87 87 ```