Skip to content

Commit e6ae632

Browse files
committed
mdspan: P3663R3対応 調整 (#1567)
1 parent 2e31db6 commit e6ae632

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

reference/mdspan/canonical-slice.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ constexpr auto canonical-slice(S s);
1414
1515
1616
## 適格要件
17-
`S`が`IndexType`の`submdspan`スライス型であること
17+
`S`が`IndexType`の[`submdspan`スライス型](submdspan_canonicalize_slices.md)であること
1818
1919
2020
## 効果

reference/mdspan/layout_left/mapping/submdspan_mapping.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ friend constexpr auto submdspan_mapping(
4646
- パック`ls` : `extents()`の次元`r`に対して、`r`番目の要素が`slices...[r]`の`submdspan`スライス範囲の下限に等しい`index_type`型の値パック
4747
- 値`offset` : `extents()`における任意の次元インデクス`k`に対して`ls...[k]`が`extents().extent(k)`と等しいとき、`required_span_size()`に等しい`size_t`型の値。そうでなければ、[`operator()`](op_call.md)に等しい`size_t`型の値。
4848
49-
下記を満たす型`S`を、単位ストライド幅スライス型(unit-stride slice type)と定義する
49+
下記を満たす型`S`を、単位ストライド幅スライス型と定義する
5050
5151
- `S`が[`strided_slice`](../../strided_slice.md)の特殊化であり、`S::stride_type`が[`constant_wrapper`](/reference/type_traits/constant_wrapper.md.nolink)の特殊化かつ`S::stride_type::value`が`1`、または
5252
- `S`が[`full_extent_t`](../../full_extent_t.md)

reference/mdspan/layout_left_padded/mapping/submdspan_mapping.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ friend constexpr auto submdspan_mapping(
4646
- パック`ls` : `extents()`の次元`r`に対して、`r`番目の要素が`slices...[r]`の`submdspan`スライス範囲の下限に等しい`index_type`型の値パック
4747
- 値`offset` : `extents()`における任意の次元インデクス`k`に対して`ls...[k]`が`extents().extent(k)`と等しいとき、`required_span_size()`に等しい`size_t`型の値。そうでなければ、[`operator()`](op_call.md)に等しい`size_t`型の値。
4848
49-
下記を満たす型`S`を、単位ストライド幅スライス型(unit-stride slice type)と定義する
49+
下記を満たす型`S`を、単位ストライド幅スライス型と定義する
5050
5151
- `S`が[`strided_slice`](../../strided_slice.md)の特殊化であり、`S::stride_type`が[`constant_wrapper`](/reference/type_traits/constant_wrapper.md.nolink)の特殊化かつ`S::stride_type::value`が`1`、または
5252
- `S`が[`full_extent_t`](../../full_extent_t.md)

reference/mdspan/layout_right/mapping/submdspan_mapping.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ friend constexpr auto submdspan_mapping(
4646
- パック`ls` : `extents()`の次元`r`に対して、`r`番目の要素が`slices...[r]`の`submdspan`スライス範囲の下限に等しい`index_type`型の値パック
4747
- 値`offset` : `extents()`における任意の次元インデクス`k`に対して`ls...[k]`が`extents().extent(k)`と等しいとき、`required_span_size()`に等しい`size_t`型の値。そうでなければ、[`operator()`](op_call.md)に等しい`size_t`型の値。
4848
49-
下記を満たす型`S`を、単位ストライド幅スライス型(unit-stride slice type)と定義する
49+
下記を満たす型`S`を、単位ストライド幅スライス型と定義する
5050
5151
- `S`が[`strided_slice`](../../strided_slice.md)の特殊化であり、`S::stride_type`が[`constant_wrapper`](/reference/type_traits/constant_wrapper.md.nolink)の特殊化かつ`S::stride_type::value`が`1`、または
5252
- `S`が[`full_extent_t`](../../full_extent_t.md)

reference/mdspan/layout_right_padded/mapping/submdspan_mapping.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ friend constexpr auto submdspan_mapping(
4646
- パック`ls` : `extents()`の次元`r`に対して、`r`番目の要素が`slices...[r]`の`submdspan`スライス範囲の下限に等しい`index_type`型の値パック
4747
- 値`offset` : `extents()`における任意の次元インデクス`k`に対して`ls...[k]`が`extents().extent(k)`と等しいとき、`required_span_size()`に等しい`size_t`型の値。そうでなければ、[`operator()`](op_call.md)に等しい`size_t`型の値。
4848
49-
下記を満たす型`S`を、単位ストライド幅スライス型(unit-stride slice type)と定義する
49+
下記を満たす型`S`を、単位ストライド幅スライス型と定義する
5050
5151
- `S`が[`strided_slice`](../../strided_slice.md)の特殊化であり、`S::stride_type`が[`constant_wrapper`](/reference/type_traits/constant_wrapper.md.nolink)の特殊化かつ`S::stride_type::value`が`1`、または
5252
- `S`が[`full_extent_t`](../../full_extent_t.md)

reference/mdspan/sliceable-mapping.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ concept sliceable-mapping = see below;
4343
submdspan_mapping(m, valid_slices...)
4444
```
4545

46-
下記を満たす型`SM`に対して`submdspan_mapping_result<SM>`の特殊化である型`SMR`をもつ。
46+
下記を満たす型`SM`に対して[`submdspan_mapping_result`](submdspan_mapping_result.md)`<SM>`の特殊化である型`SMR`をもつ。
4747

4848
- `SM`が[レイアウトマッピング要件](LayoutMapping.md)を満たす
4949
- `SM::extents_type`が[`extents`](extents.md)の特殊化である
@@ -52,7 +52,7 @@ concept sliceable-mapping = see below;
5252

5353
下記を満たす`SMR`型のオブジェクト`smr`を返す。
5454

55-
- `smr.mapping.extents() == submdspan_extents(m.extents(), valid_slices...)`、かつ
55+
- `smr.mapping.extents() ==` [`submdspan_extents`](submdspan_extents.md)`(m.extents(), valid_slices...)`、かつ
5656
- `smr.mapping.extents()`の多次元インデクス値を表す整数パック`i`に対して、下記を満たす整数パック`j`に対し`smr.mapping(i...) + smr.offset == m(j)`が`true`となる
5757
- `sizeof...(j)`が`M_rank`に等しく、かつ
5858
- `m.extents()`の各次元インデクス`r`に対して、`j...[r]`が下記の総和に等しい

reference/mdspan/submdspan_canonicalize_slices.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ namespace std {
4343
### 縮約スライス型と`MAP_RANK`
4444
ある型が[`full_extent_t`](full_extent_t.md)ないし[`strided_slice`](strided_slice.md)の特殊化いずれでもないとき、縮約スライス型(collapsing slice type)となる。
4545
46-
パック`p`と整数`i`に対して、説明用の`MAP_RANK(p, i)`を`0 <= j < `のうち縮約スライス型ではない要素`p...[j]`の個数とする。
46+
パック`p`と整数`i`に対して、説明用の`MAP_RANK(p, i)`を`0 <= j < i`のうち縮約スライス型ではない要素`p...[j]`の個数とする。
4747
4848
### 有効`submdspan`スライス型
4949
[`extents`](extents.md)の特殊化である型`E`に対して、型`S`が`E::index_type`の正則スライス型であり、かつ`E::static_extent(k)`に等しい`x`に対して`x`が`dynamic_extent`に等しいか下記を満たすとき、型`S`は`E`の`k`番目次元の有効`submdspan`スライス型(valid `submdspan` slice type)となる。
@@ -61,7 +61,7 @@ namespace std {
6161
- `e`の`k`番目区間が、`e`の`k`番目次元に対して`s`の`submdspan`スライス範囲を含む
6262
- `S`が[`strided_slice`](strided_slice.md)の特殊化であるとき :
6363
- `s.extent`が値`0`以上であり、かつ
64-
- `s.extents`が値`0`に等しい、もしくは`s.stride`が値`0`より大きい
64+
- `s.extent`が値`0`に等しい、もしくは`s.stride`が値`0`より大きい
6565
6666
6767
## テンプレートパラメータ制約

working_style.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ C++11以降対応については対応バージョンを明記します。バー
154154
| trait | トレイト |
155155
| trivial | トリビアル (逆は非トリビアル) |
156156
| underlying type | 基底型 |
157-
| unit-stride slice | 単位ストライド幅スライス |
157+
| unit-stride slice type | 単位ストライド幅スライス型 |
158158
| unordered associative container(s) | 非順序連想コンテナ |
159159
| unspecified | 未規定 |
160160
| program-defined type | プログラム定義型 |

0 commit comments

Comments
 (0)