-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Constraint on layout_{left|right|stride}::stride
is not implemented
#201
Comments
One possible fix is to have the following
|
|
@youyu3 We defined |
So is the behavior here https://godbolt.org/z/qWsnjeebT expected, i.e., |
That is not the correct behavior per http://eel.is/c++draft/views#mdspan.layout.left.obs . |
* Return type of `layout_stride::operator()` should be `index_type` (kokkos/mdspan#200) * Constraint on `stride()` is not implemented (kokkos/mdspan#201)
@youyu3 can you issue that PR against kokkos/mdspan too? |
Per http://eel.is/c++draft/mdspan.layout.left.obs#5, should have
But is not implemented, for example: https://github.com/kokkos/mdspan/blob/stable/include/experimental/__p0009_bits/layout_left.hpp#L206
stride(0)
returns 1 for a 0-D mapping (stdex::extents<size_t>
).The text was updated successfully, but these errors were encountered: