-
Bjørn Reese:
> Related to this, I also like the extent() over shape(). This name is
also used by Boost.MultiArray and the std::mdspan proposal (P0009R7).
In the name of consistency, you may also …
-
This got removed in 2016 in favor of just using `v()` for a rank-0 view `v`.
All of the examples were written with `*dt` to access the single element in a rank-0 view.
What was the rationale for r…
-
@crtrott @dsunder
The specific layouts define `required_span_size()` as the product of `extents().extent(r)` for all `r` where 0
-
-
I am playing with the implementation from https://github.com/hcedwar/ornl-cpp-proposals-pub/blob/master/P0009/prototype/include/mdspan
It works for me with `mdspan` but I cannot use `subspan()`.
It …
-
Not quite done yet:
```c++
// [mdspan.subspan], subspan creation
template
basic_mdspan
subspan(const basic_mdspan& src, SliceSpecifiers ... slices) noexcept;
```
* subspan creat…
-
Right now the synopsis goes:
```
struct mdspan
{
// Usual ctors.
// Other functions.
// Converting ctors.
};
```
Likewise for the sections describing the member functions themselves…
-
The current C++ draft defines `span` as a "view." P0009 also defines `mdspan` as a "view." I don't see a clear definition of "view" anywhere in the draft, even with `string_view`. I understand what…
-
The layout_stride `is_contiguous` covers the conditions for contiguous property.
These properties do not need to be enforced / duplicated in the constructor.
A stride of zero should be allowed in th…
-
* DS: check for returns vs effects
* extent
* ~DS: Copy constructors: Should this be two different sections, or does it not matter for move initialization of array? -> *agreed: all constructors,…