2
2
<feed xmlns="http://www.w3.org/2005/Atom">
3
3
<title>cpprefjp - C++日本語リファレンス</title>
4
4
<link href="https://cpprefjp.github.io" />
5
- <updated>2024-06-15T08:41:40.743641 </updated>
6
- <id>dbcc51c6-0943-4bfb-80c5-991563d0d4dd </id>
5
+ <updated>2024-06-15T12:38:46.018243 </updated>
6
+ <id>8d85e1f4-e29f-43e5-8955-5ee8a21232a6 </id>
7
7
8
8
9
+ <entry>
10
+ <title>範囲for文 [N2930] -- cpp11/range_based_for: markup code</title>
11
+ <link href="https://cpprefjp.github.io/lang/cpp11/range_based_for.html"/>
12
+ <id>5be9a45de2f2cb0015415120583a579005a96f1e:lang/cpp11/range_based_for.md</id>
13
+ <updated>2024-06-15T21:35:49+09:00</updated>
14
+
15
+ <summary type="html"><pre><code>diff --git a/lang/cpp11/range_based_for.md b/lang/cpp11/range_based_for.md
16
+ index 8c80c934b..33a5db868 100644
17
+ --- a/lang/cpp11/range_based_for.md
18
+ +++ b/lang/cpp11/range_based_for.md
19
+ @@ -34,9 +34,9 @@ for (const auto&amp; e : v) {
20
+
21
+ | 変数宣言 | e を変更可能か? | コンテナ内の要素を変更可能か? |
22
+ |-----------------|------------------|--------------------------------|
23
+ -| const auto&amp; e | No | No |
24
+ -| auto&amp; e | Yes | Yes |
25
+ -| auto e | Yes | No |
26
+ +| `const auto&amp; e` | No | No |
27
+ +| `auto&amp; e` | Yes | Yes |
28
+ +| `auto e` | Yes | No |
29
+
30
+ [auto]: /lang/cpp11/auto.md
31
+
32
+ </code></pre></summary>
33
+
34
+ <author>
35
+ <name>yoh</name>
36
+
37
+ </author>
38
+ </entry>
39
+
9
40
<entry>
10
41
<title>契約に基づくプログラミング -- Update contract-based_programming.md</title>
11
42
<link href="https://cpprefjp.github.io/lang/future/contract-based_programming.html"/>
@@ -12118,272 +12149,4 @@ index e05ce729d..06e1dadb8 100644
12118
12149
</author>
12119
12150
</entry>
12120
12151
12121
- <entry>
12122
- <title>add -- linalg : addを追加(#1233).</title>
12123
- <link href="https://cpprefjp.github.io/reference/linalg/add.html"/>
12124
- <id>439aededa674eeece8990ecdc8f785264ed6830b:reference/linalg/add.md</id>
12125
- <updated>2024-06-13T21:47:23+09:00</updated>
12126
-
12127
- <summary type="html"><pre><code>diff --git a/reference/linalg/add.md b/reference/linalg/add.md
12128
- new file mode 100644
12129
- index 000000000..fd21543da
12130
- --- /dev/null
12131
- +++ b/reference/linalg/add.md
12132
- @@ -0,0 +1,96 @@
12133
- +# add
12134
- +
12135
- +* [mathjax enable]
12136
- +* linalg[meta header]
12137
- +* function template[meta id-type]
12138
- +* std::linalg[meta namespace]
12139
- +* cpp26[meta cpp]
12140
- +
12141
- +
12142
- +```cpp
12143
- +namespace std::linalg {
12144
- + template&lt;in-object InObj1,
12145
- + in-object InObj2,
12146
- + out-object OutObj&gt;
12147
- + void add(InObj1 x,
12148
- + InObj2 y,
12149
- + OutObj z); // (1)
12150
- +
12151
- + template&lt;class ExecutionPolicy,
12152
- + in-object InObj1,
12153
- + in-object InObj2,
12154
- + out-object OutObj&gt;
12155
- + void add(ExecutionPolicy&amp;&amp; exec,
12156
- + InObj1 x,
12157
- + InObj2 y,
12158
- + OutObj z); // (2)
12159
- +}
12160
- +```
12161
- +
12162
- +
12163
- +## 概要
12164
- +同じサイズの行列またはベクトルの`x`と`y`、`z`に対して、$x + y$ を`z`に代入する:
12165
- +
12166
- +$$
12167
- +z \leftarrow x + y
12168
- +$$
12169
- +
12170
- +
12171
- +## テンプレートパラメータ制約
12172
- +`x`と`y`、`z`の次元が全て等しくなければならない。
12173
- +- `x.rank() == y.rank() &amp;&amp; y.rank() == z.rank()`
12174
- +
12175
- +
12176
- +## 適格要件
12177
- +行列またはベクトルの`x`、`y`、`z`の各次元の静的要素数が同じであること。
12178
- +
12179
- +- [`possibly-addable`](possibly-addable.md)`&lt;InObj1, InObj2, OutObj&gt;() == true`
12180
- +
12181
- +
12182
- +## 事前条件
12183
- +行列またはベクトルの`x`、`y`、`z`の各次元が同じであること。
12184
- +
12185
- +- [`addable`](addable.md)`(x, y, z) == true`
12186
- +
12187
- +
12188
- +## 効果
12189
- +$x + y$ を`z`に代入する。
12190
- +
12191
- +- (1): 逐次実行する。
12192
- +- (2): 指定された実行ポリシーに応じて実行する。
12193
- +
12194
- +
12195
- +## 戻り値
12196
- +なし
12197
- +
12198
- +
12199
- +## 備考
12200
- +`z`を`x`または`y`としてもよい。
12201
- +
12202
- +
12203
- +## 例
12204
- +
12205
- +
12206
- +### 出力
12207
- +
12208
- +
12209
- +## バージョン
12210
- +### 言語
12211
- +- C++26
12212
- +
12213
- +### 処理系
12214
- +- [Clang](/implementation.md#clang): ??
12215
- +- [GCC](/implementation.md#gcc): ??
12216
- +- [ICC](/implementation.md#icc): ??
12217
- +- [Visual C++](/implementation.md#visual_cpp): ??
12218
- +
12219
- +
12220
- +## 関連項目
12221
- +- [`execution`](/reference/execution.md)
12222
- +- [`mdspan`](/reference/mdspan.md)
12223
- +
12224
- +
12225
- +## 参照
12226
- +- [P0788R3 Standard Library Specification in a Concepts and Contracts World](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0788r3.pdf)
12227
- +- [`LAPACK: caxpy`](https://netlib.org/lapack/explore-html/d5/d4b/group__axpy_ga0b7bac1f4d42514074a48f14f5f9caa0.html#ga0b7bac1f4d42514074a48f14f5f9caa0)
12228
- +
12229
- </code></pre></summary>
12230
-
12231
- <author>
12232
- <name>Yuya Asano</name>
12233
-
12234
- </author>
12235
- </entry>
12236
-
12237
- <entry>
12238
- <title>addable -- linalg : addを追加(#1233).</title>
12239
- <link href="https://cpprefjp.github.io/reference/linalg/addable.html"/>
12240
- <id>439aededa674eeece8990ecdc8f785264ed6830b:reference/linalg/addable.md</id>
12241
- <updated>2024-06-13T21:47:23+09:00</updated>
12242
-
12243
- <summary type="html"><pre><code>diff --git a/reference/linalg/addable.md b/reference/linalg/addable.md
12244
- new file mode 100644
12245
- index 000000000..1f6e46f79
12246
- --- /dev/null
12247
- +++ b/reference/linalg/addable.md
12248
- @@ -0,0 +1,57 @@
12249
- +# addable
12250
- +
12251
- +* linalg[meta header]
12252
- +* function template[meta id-type]
12253
- +* std::linalg[meta namespace]
12254
- +* cpp26[meta cpp]
12255
- +
12256
- +
12257
- +```cpp
12258
- +namespace std::linalg {
12259
- +constexpr bool addable(
12260
- + const in-vector auto&amp; in1,
12261
- + const in-vector auto&amp; in2,
12262
- + const in-vector auto&amp; out)
12263
- +{
12264
- + return out.extent(0) == in1.extent(0) &amp;&amp;
12265
- + out.extent(0) == in2.extent(0);
12266
- +} // (1)
12267
- +
12268
- +constexpr bool addable(
12269
- + const in-matrix auto&amp; in1,
12270
- + const in-matrix auto&amp; in2,
12271
- + const in-matrix auto&amp; out)
12272
- +{
12273
- + return out.extent(0) == in1.extent(0) &amp;&amp;
12274
- + out.extent(1) == in1.extent(1) &amp;&amp;
12275
- + out.extent(0) == in2.extent(0) &amp;&amp;
12276
- + out.extent(1) == in2.extent(1);
12277
- +} // (2)
12278
- +}
12279
- +```
12280
- +
12281
- +
12282
- +## 概要
12283
- +テンプレートパラメータに指定されたベクトルまたは行列の次元が同じかどうかを判定する、説明専用の関数である。
12284
- +
12285
- +
12286
- +## 戻り値
12287
- +`In1`、`In2`、`Out`の各次元が同じ場合`true`を返す。そうでない場合は、`false`を返す。
12288
- +
12289
- +- (1): ベクトル
12290
- +- (2): 行列
12291
- +
12292
- +
12293
- +## バージョン
12294
- +### 言語
12295
- +- C++26
12296
- +
12297
- +
12298
- +## 関連項目
12299
- +- [`mdspan`](/reference/mdspan.md)
12300
- +
12301
- +
12302
- +## 参照
12303
- +- [P1673R13 A free function linear algebra interface based on the BLAS](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p1673r13.html)
12304
- +
12305
- +
12306
- </code></pre></summary>
12307
-
12308
- <author>
12309
- <name>Yuya Asano</name>
12310
-
12311
- </author>
12312
- </entry>
12313
-
12314
- <entry>
12315
- <title>possibly-addable -- linalg : addを追加(#1233).</title>
12316
- <link href="https://cpprefjp.github.io/reference/linalg/possibly-addable.html"/>
12317
- <id>439aededa674eeece8990ecdc8f785264ed6830b:reference/linalg/possibly-addable.md</id>
12318
- <updated>2024-06-13T21:47:23+09:00</updated>
12319
-
12320
- <summary type="html"><pre><code>diff --git a/reference/linalg/possibly-addable.md b/reference/linalg/possibly-addable.md
12321
- new file mode 100644
12322
- index 000000000..3b34fa1dd
12323
- --- /dev/null
12324
- +++ b/reference/linalg/possibly-addable.md
12325
- @@ -0,0 +1,55 @@
12326
- +# possibly-addable
12327
- +
12328
- +* linalg[meta header]
12329
- +* function template[meta id-type]
12330
- +* std::linalg[meta namespace]
12331
- +* cpp26[meta cpp]
12332
- +
12333
- +
12334
- +```cpp
12335
- +namespace std::linalg {
12336
- + template&lt;in-vector In1, in-vector In2, in-vector Out&gt;
12337
- + constexpr bool possibly-addable()
12338
- + {
12339
- + return compatible-static-extents&lt;Out, In1&gt;(0, 0) &amp;&amp;
12340
- + compatible-static-extents&lt;Out, In2&gt;(0, 0) &amp;&amp;
12341
- + compatible-static-extents&lt;In1, In2&gt;(0, 0);
12342
- + } // (1)
12343
- +
12344
- + template&lt;in-matrix In1, in-matrix In2, in-matrix Out&gt;
12345
- + constexpr bool possibly-addable()
12346
- + {
12347
- + return compatible-static-extents&lt;Out, In1&gt;(0, 0) &amp;&amp;
12348
- + compatible-static-extents&lt;Out, In1&gt;(1, 1) &amp;&amp;
12349
- + compatible-static-extents&lt;Out, In2&gt;(0, 0) &amp;&amp;
12350
- + compatible-static-extents&lt;Out, In2&gt;(1, 1) &amp;&amp;
12351
- + compatible-static-extents&lt;In1, In2&gt;(0, 0) &amp;&amp;
12352
- + compatible-static-extents&lt;In1, In2&gt;(1, 1);
12353
- + } // (2)
12354
- +}
12355
- +```
12356
- +
12357
- +
12358
- +## 概要
12359
- +テンプレートパラメータに指定されたベクトルまたは行列の次元が同じかどうかを静的要素数で判定する、説明専用の関数である。
12360
- +
12361
- +
12362
- +## 戻り値
12363
- +`In1`、`In2`、`Out`の各次元の静的要素数が同じ場合`true`を返す。そうでない場合は、`false`を返す。
12364
- +
12365
- +- (1): ベクトル
12366
- +- (2): 行列
12367
- +
12368
- +
12369
- +## バージョン
12370
- +### 言語
12371
- +- C++26
12372
- +
12373
- +
12374
- +## 関連項目
12375
- +- [`mdspan`](/reference/mdspan.md)
12376
- +
12377
- +
12378
- +## 参照
12379
- +- [P1673R13 A free function linear algebra interface based on the BLAS](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p1673r13.html)
12380
- +
12381
- </code></pre></summary>
12382
-
12383
- <author>
12384
- <name>Yuya Asano</name>
12385
-
12386
- </author>
12387
- </entry>
12388
-
12389
12152
</feed>
0 commit comments