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-12-19T13:16:29.640696 </updated >
6
- <id >8be6638d-efe7-4484-9e22-9bd6be953073 </id >
5
+ <updated >2024-12-19T13:21:18.944893 </updated >
6
+ <id >62ec3ac5-d4f4-4aa8-a73e-1d3f29198a2b </id >
7
7
8
8
9
+ <entry >
10
+ <title >philox_engine -- philox_engineのサンプル : ループ内でオブジェクトを作るよう修正</title >
11
+ <link href =" https://cpprefjp.github.io/reference/random/philox_engine.html" />
12
+ <id >000cd8fb45da8eb4f823102d56ae6fa10b67f2ab:reference/random/philox_engine.md</id >
13
+ <updated >2024-12-19T22:18:14+09:00</updated >
14
+
15
+ <summary type =" html" >< pre>< code> diff --git a/reference/random/philox_engine.md b/reference/random/philox_engine.md
16
+ index 4a60b07dc..4fa2ae4b5 100644
17
+ --- a/reference/random/philox_engine.md
18
+ +++ b/reference/random/philox_engine.md
19
+ @@ -213,13 +213,12 @@ struct Vector {
20
+ int main()
21
+ {
22
+ std::uint32_t seed = 12345;
23
+ - std::philox4x32 engine;
24
+
25
+ // 2x2x2個のランダムなベクトルを生成する
26
+ for (std::uint32_t x = 0; x & lt; 2; ++x) {
27
+ for (std::uint32_t y = 0; y & lt; 2; ++y) {
28
+ for (std::uint32_t z = 0; z & lt; 2; ++z) {
29
+ - engine.seed(seed);
30
+ + std::philox4x32 engine{seed};
31
+ engine.set_counter({x, y, z, 0});
32
+
33
+ std::uniform_real_distribution& lt;float& gt; dist{0, 1.0};
34
+ @@ -236,7 +235,6 @@ int main()
35
+ }
36
+ ```
37
+ * std::philox4x32[link philox4x32.md]
38
+ -* engine.seed[link philox_engine/seed.md]
39
+ * engine.set_counter[link philox_engine/set_counter.md]
40
+ * uniform_real_distribution[link /reference/random/uniform_real_distribution.md]
41
+ * std::uint32_t[link /reference/cstdint/uint32_t.md]
42
+ < /code>< /pre> </summary >
43
+
44
+ <author >
45
+ <name >Akira Takahashi</name >
46
+
47
+ </author >
48
+ </entry >
49
+
9
50
<entry >
10
51
<title >set_counter -- philox_engine::set_counter : シード値を状態として保持してないことを記載</title >
11
52
<link href =" https://cpprefjp.github.io/reference/random/philox_engine/set_counter.html" />
@@ -166,31 +207,4 @@ index 94e62dcf2..62a8fa34e 100644
166
207
</author >
167
208
</entry >
168
209
169
- <entry >
170
- <title >philox_engine -- コメント修正忘れ</title >
171
- <link href =" https://cpprefjp.github.io/reference/random/philox_engine.html" />
172
- <id >7b0c554ae195c2b40a7680451443ecdd83ec4825:reference/random/philox_engine.md</id >
173
- <updated >2024-12-19T22:00:57+09:00</updated >
174
-
175
- <summary type =" html" >< pre>< code> diff --git a/reference/random/philox_engine.md b/reference/random/philox_engine.md
176
- index 902f2cc4c..4a60b07dc 100644
177
- --- a/reference/random/philox_engine.md
178
- +++ b/reference/random/philox_engine.md
179
- @@ -215,7 +215,7 @@ int main()
180
- std::uint32_t seed = 12345;
181
- std::philox4x32 engine;
182
-
183
- - // 4x4x4個のランダムなベクトルを生成する
184
- + // 2x2x2個のランダムなベクトルを生成する
185
- for (std::uint32_t x = 0; x & lt; 2; ++x) {
186
- for (std::uint32_t y = 0; y & lt; 2; ++y) {
187
- for (std::uint32_t z = 0; z & lt; 2; ++z) {
188
- < /code>< /pre> </summary >
189
-
190
- <author >
191
- <name >Akira Takahashi</name >
192
-
193
- </author >
194
- </entry >
195
-
196
210
</feed >
0 commit comments