tmp/tmpkcxlpl6w/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#### Constructors <a id="linalg.layout.packed.cons">[[linalg.layout.packed.cons]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
constexpr mapping(const extents_type& e) noexcept;
|
| 5 |
+
```
|
| 6 |
+
|
| 7 |
+
*Preconditions:*
|
| 8 |
+
|
| 9 |
+
- Let N be equal to `e.extent(0)`. Then, N × (N+1) is representable as a
|
| 10 |
+
value of type `index_type` [[basic.fundamental]].
|
| 11 |
+
- `e.extent(0)` equals `e.extent(1)`.
|
| 12 |
+
|
| 13 |
+
*Effects:* Direct-non-list-initializes *extents\_* with `e`.
|
| 14 |
+
|
| 15 |
+
``` cpp
|
| 16 |
+
template<class OtherExtents>
|
| 17 |
+
explicit(!is_convertible_v<OtherExtents, extents_type>)
|
| 18 |
+
constexpr mapping(const mapping<OtherExtents>& other) noexcept;
|
| 19 |
+
```
|
| 20 |
+
|
| 21 |
+
*Constraints:* `is_constructible_v<extents_type, OtherExtents>` is
|
| 22 |
+
`true`.
|
| 23 |
+
|
| 24 |
+
*Preconditions:* Let N be `other.extents().extent(0)`. Then, N × (N+1)
|
| 25 |
+
is representable as a value of type `index_type` [[basic.fundamental]].
|
| 26 |
+
|
| 27 |
+
*Effects:* Direct-non-list-initializes *extents\_* with
|
| 28 |
+
`other.extents()`.
|
| 29 |
+
|