Skip to content

Commit f57063a

Browse files
author
cpprefjp-autoupdate
committed
update automatically
1 parent 8e8cfec commit f57063a

File tree

6 files changed

+133
-149
lines changed

6 files changed

+133
-149
lines changed

reference/map/map/op_constructor.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -200,12 +200,12 @@
200200

201201
<p class="text-right"><small>
202202
最終更新日時(UTC):
203-
<span itemprop="datePublished" content="2024-06-11T13:45:38">
204-
2024年06月11日 13時45分38秒
203+
<span itemprop="datePublished" content="2024-07-27T08:57:30">
204+
2024年07月27日 08時57分30秒
205205
</span>
206206
<br/>
207207
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
208-
<span itemprop="name">Akira Takahashi</span>
208+
<span itemprop="name">suomesta</span>
209209
</span>
210210
が更新
211211
</small></p>
@@ -285,8 +285,8 @@ <h2>計算量</h2>
285285
<li>(4)、(5) <code>N = <a href="../../iterator/distance.html">distance</a>(first, last)</code> とすると、範囲 <code>[first, last)</code> が比較オブジェクト <code>comp</code> によって既にソート済みである場合は <code>N</code> に比例、そうでなければ <code>N log N</code> に比例</li>
286286
<li>(6)、(7) <code>x.<a href="size.html">size</a>()</code> に対して線形時間</li>
287287
<li>(8) 定数時間</li>
288-
<li>(9) 定数時間。但し、<code>alloc == y.<a href="get_allocator.html">get_allocator</a>()</code> でなければ <code>y.<a href="size.html">size</a>()</code> に対して線形時間</li>
289-
<li>(10)、(11) <code>init.<a href="size.html">size</a>()</code> に対して線形時間。</li>
288+
<li>(9) 定数時間。但し、<code>alloc == y.<a href="get_allocator.html">get_allocator</a>()</code> でなければ <code>y.<a href="size.html">size</a>()</code> に対して線形時間</li>
289+
<li>(10)、(11) <code>N = init.<a href="../../initializer_list/initializer_list/size.html">size</a>()</code> とすると、範囲 <code>[init.<a href="../../initializer_list/initializer_list/begin.html">begin</a>(), init.<a href="../../initializer_list/initializer_list/end.html">end</a>())</code> が比較オブジェクト <code>comp</code> によって既にソート済みである場合は <code>N</code> に比例、そうでなければ <code>N log N</code> に比例</li>
290290
</ul>
291291
<h2>備考</h2>
292292
<ul>

reference/map/multimap/op_constructor.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,12 +200,12 @@
200200

201201
<p class="text-right"><small>
202202
最終更新日時(UTC):
203-
<span itemprop="datePublished" content="2024-06-11T13:45:38">
204-
2024年06月11日 13時45分38秒
203+
<span itemprop="datePublished" content="2024-07-27T08:57:30">
204+
2024年07月27日 08時57分30秒
205205
</span>
206206
<br/>
207207
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
208-
<span itemprop="name">Akira Takahashi</span>
208+
<span itemprop="name">suomesta</span>
209209
</span>
210210
が更新
211211
</small></p>
@@ -288,7 +288,7 @@ <h2>計算量</h2>
288288
<li>(6)、(7) <code>x.<a href="size.html">size</a>()</code> に対して線形時間</li>
289289
<li>(8) 定数時間</li>
290290
<li>(9) 定数時間。ただし、<code>alloc == y.<a href="get_allocator.html">get_allocator</a>()</code> でなければ <code>y.<a href="size.html">size</a>()</code> に対して線形時間</li>
291-
<li>(10)、(11) <code>init.<a href="size.html">size</a>()</code> に対して線形時間</li>
291+
<li>(10)、(11) <code>N = init.<a href="../../initializer_list/initializer_list/size.html">size</a>()</code> とすると、範囲 <code>[init.<a href="../../initializer_list/initializer_list/begin.html">begin</a>(), init.<a href="../../initializer_list/initializer_list/end.html">end</a>())</code> が比較オブジェクト <code>comp</code> によって既にソート済みである場合は <code>N</code> に比例、そうでなければ <code>N log N</code> に比例</li>
292292
</ul>
293293
<h2>備考</h2>
294294
<ul>

reference/set/multiset/op_constructor.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,12 +200,12 @@
200200

201201
<p class="text-right"><small>
202202
最終更新日時(UTC):
203-
<span itemprop="datePublished" content="2019-03-19T01:29:20">
204-
2019年03月19日 01時29分20秒
203+
<span itemprop="datePublished" content="2024-07-27T08:57:30">
204+
2024年07月27日 08時57分30秒
205205
</span>
206206
<br/>
207207
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
208-
<span itemprop="name">alphya</span>
208+
<span itemprop="name">suomesta</span>
209209
</span>
210210
が更新
211211
</small></p>
@@ -279,7 +279,7 @@ <h2>計算量</h2>
279279
<li>(4), (5) : <code>comp</code> によって既にソート済みである場合は、イテレータ間の距離(コピーコンストラクト)。未ソートのシーケンスの場合は、それらの距離について N * logN (ソート、コピーコンストラクト)。</li>
280280
<li>(6), (8) : <code>x</code><code><a href="size.html">size</a></code> に対して線形時間(全要素をコピー構築する)。</li>
281281
<li>(7), (9) : 定数時間。ただし、<code>alloc</code> が与えられてかつ <code>alloc != y.<a href="get_allocator.html">get_allocator</a>()</code> の場合は線形時間。</li>
282-
<li>(10), (11) : <code>init</code> の要素数に対して線形時間</li>
282+
<li>(10), (11) : <code>comp</code> によって既にソート済みである場合は、<code>init</code> のサイズ(コピーコンストラクト)。未ソートの <code>init</code> の場合は、<code>init</code> のサイズについて N * logN (ソート、コピーコンストラクト)</li>
283283
</ul>
284284
<h2>備考</h2>
285285
<ul>

reference/set/set/op_constructor.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,12 +200,12 @@
200200

201201
<p class="text-right"><small>
202202
最終更新日時(UTC):
203-
<span itemprop="datePublished" content="2022-12-28T02:13:14">
204-
2022年12月28日 02時13分14秒
203+
<span itemprop="datePublished" content="2024-07-27T08:57:30">
204+
2024年07月27日 08時57分30秒
205205
</span>
206206
<br/>
207207
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
208-
<span itemprop="name">Akira Takahashi</span>
208+
<span itemprop="name">suomesta</span>
209209
</span>
210210
が更新
211211
</small></p>
@@ -279,7 +279,7 @@ <h2>計算量</h2>
279279
<li>(4), (5) : <code>comp</code> によって既にソート済みである場合は、イテレータ間の距離(コピーコンストラクト)。未ソートのシーケンスの場合は、それらの距離について N * logN (ソート、コピーコンストラクト)。</li>
280280
<li>(6), (8) : <code>x</code><code><a href="size.html">size</a></code> に対して線形時間(全要素をコピー構築する)。</li>
281281
<li>(7), (9) : 定数時間。ただし、<code>alloc</code> が与えられてかつ <code>alloc != y.<a href="get_allocator.html">get_allocator</a>()</code> の場合は線形時間。</li>
282-
<li>(10), (11) : <code>init</code> の要素数に対して線形時間</li>
282+
<li>(10), (11) : <code>comp</code> によって既にソート済みである場合は、<code>init</code> のサイズ(コピーコンストラクト)。未ソートの <code>init</code> の場合は、<code>init</code> のサイズについて N * logN (ソート、コピーコンストラクト)</li>
283283
</ul>
284284
<h2>備考</h2>
285285
<ul>

rss.xml

Lines changed: 112 additions & 128 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,120 @@
22
<feed xmlns="http://www.w3.org/2005/Atom">
33
<title>cpprefjp - C++日本語リファレンス</title>
44
<link href="https://cpprefjp.github.io" />
5-
<updated>2024-07-26T14:38:38.562999</updated>
6-
<id>f23c5c0a-6dd2-4ca8-9b5d-14590e1062c3</id>
5+
<updated>2024-07-27T09:02:32.236777</updated>
6+
<id>d0c68718-47a9-4839-9e87-1d8d6837a0ca</id>
77

88

9+
<entry>
10+
<title>コンストラクタ -- fix description about constructor complexity in map and set</title>
11+
<link href="https://cpprefjp.github.io/reference/map/map/op_constructor.html"/>
12+
<id>75e450d08d80a5cdbf2ca0648edd0172436062e9:reference/map/map/op_constructor.md</id>
13+
<updated>2024-07-27T17:57:30+09:00</updated>
14+
15+
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/map/map/op_constructor.md b/reference/map/map/op_constructor.md
16+
index 044525df9..de6950de8 100644
17+
--- a/reference/map/map/op_constructor.md
18+
+++ b/reference/map/map/op_constructor.md
19+
@@ -67,8 +67,8 @@ map(initializer_list&amp;lt;value_type&amp;gt; init,
20+
- (4)、(5) `N =` [`distance`](../../iterator/distance.md)`(first, last)` とすると、範囲 `[first, last)` が比較オブジェクト `comp` によって既にソート済みである場合は `N` に比例、そうでなければ `N log N` に比例
21+
- (6)、(7) `x.`[`size`](size.md)`()` に対して線形時間
22+
- (8) 定数時間
23+
-- (9) 定数時間。但し、`alloc == y.`[`get_allocator`](/reference/map/map/get_allocator.md)`()` でなければ `y.`[`size`](size.md)`()` に対して線形時間。
24+
-- (10)、(11) `init.`[`size`](size.md)`()` に対して線形時間。
25+
+- (9) 定数時間。但し、`alloc == y.`[`get_allocator`](/reference/map/map/get_allocator.md)`()` でなければ `y.`[`size`](size.md)`()` に対して線形時間
26+
+- (10)、(11) `N = init.`[`size`](../../initializer_list/initializer_list/size.md)`()` とすると、範囲 `[init.`[`begin`](../../initializer_list/initializer_list/begin.md)`(), init.`[`end`](../../initializer_list/initializer_list/end.md)`())` が比較オブジェクト `comp` によって既にソート済みである場合は `N` に比例、そうでなければ `N log N` に比例
27+
28+
29+
## 備考
30+
&lt;/code&gt;&lt;/pre&gt;</summary>
31+
32+
<author>
33+
<name>suomesta</name>
34+
<email>[email protected]</email>
35+
</author>
36+
</entry>
37+
38+
<entry>
39+
<title>コンストラクタ -- fix description about constructor complexity in map and set</title>
40+
<link href="https://cpprefjp.github.io/reference/map/multimap/op_constructor.html"/>
41+
<id>75e450d08d80a5cdbf2ca0648edd0172436062e9:reference/map/multimap/op_constructor.md</id>
42+
<updated>2024-07-27T17:57:30+09:00</updated>
43+
44+
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/map/multimap/op_constructor.md b/reference/map/multimap/op_constructor.md
45+
index 399f10e85..ac4fc9f3d 100644
46+
--- a/reference/map/multimap/op_constructor.md
47+
+++ b/reference/map/multimap/op_constructor.md
48+
@@ -71,7 +71,7 @@ multimap(initializer_list&amp;lt;value_type&amp;gt; init,
49+
- (6)、(7) `x.`[`size`](size.md)`()` に対して線形時間
50+
- (8) 定数時間
51+
- (9) 定数時間。ただし、`alloc == y.`[`get_allocator`](get_allocator.md)`()` でなければ `y.`[`size`](size.md)`()` に対して線形時間
52+
-- (10)、(11) `init.`[`size`](size.md)`()` に対して線形時間
53+
+- (10)、(11) `N = init.`[`size`](../../initializer_list/initializer_list/size.md)`()` とすると、範囲 `[init.`[`begin`](../../initializer_list/initializer_list/begin.md)`(), init.`[`end`](../../initializer_list/initializer_list/end.md)`())` が比較オブジェクト `comp` によって既にソート済みである場合は `N` に比例、そうでなければ `N log N` に比例
54+
55+
56+
## 備考
57+
&lt;/code&gt;&lt;/pre&gt;</summary>
58+
59+
<author>
60+
<name>suomesta</name>
61+
<email>[email protected]</email>
62+
</author>
63+
</entry>
64+
65+
<entry>
66+
<title>コンストラクタ -- fix description about constructor complexity in map and set</title>
67+
<link href="https://cpprefjp.github.io/reference/set/multiset/op_constructor.html"/>
68+
<id>75e450d08d80a5cdbf2ca0648edd0172436062e9:reference/set/multiset/op_constructor.md</id>
69+
<updated>2024-07-27T17:57:30+09:00</updated>
70+
71+
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/set/multiset/op_constructor.md b/reference/set/multiset/op_constructor.md
72+
index ff871be24..2d547bfe5 100644
73+
--- a/reference/set/multiset/op_constructor.md
74+
+++ b/reference/set/multiset/op_constructor.md
75+
@@ -62,7 +62,7 @@ multiset(initializer_list&amp;lt;value_type&amp;gt; init,
76+
- (4), (5) : `comp` によって既にソート済みである場合は、イテレータ間の距離(コピーコンストラクト)。未ソートのシーケンスの場合は、それらの距離について N * logN (ソート、コピーコンストラクト)。
77+
- (6), (8) : `x` の [`size`](size.md) に対して線形時間(全要素をコピー構築する)。
78+
- (7), (9) : 定数時間。ただし、`alloc` が与えられてかつ `alloc != y.`[`get_allocator`](get_allocator.md)`()` の場合は線形時間。
79+
-- (10), (11) : `init` の要素数に対して線形時間。
80+
+- (10), (11) : `comp` によって既にソート済みである場合は、`init` のサイズ(コピーコンストラクト)。未ソートの `init` の場合は、`init` のサイズについて N * logN (ソート、コピーコンストラクト)。
81+
82+
83+
## 備考
84+
&lt;/code&gt;&lt;/pre&gt;</summary>
85+
86+
<author>
87+
<name>suomesta</name>
88+
<email>[email protected]</email>
89+
</author>
90+
</entry>
91+
92+
<entry>
93+
<title>コンストラクタ -- fix description about constructor complexity in map and set</title>
94+
<link href="https://cpprefjp.github.io/reference/set/set/op_constructor.html"/>
95+
<id>75e450d08d80a5cdbf2ca0648edd0172436062e9:reference/set/set/op_constructor.md</id>
96+
<updated>2024-07-27T17:57:30+09:00</updated>
97+
98+
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/set/set/op_constructor.md b/reference/set/set/op_constructor.md
99+
index d87fbf344..22e8e1e44 100644
100+
--- a/reference/set/set/op_constructor.md
101+
+++ b/reference/set/set/op_constructor.md
102+
@@ -62,7 +62,7 @@ set(initializer_list&amp;lt;value_type&amp;gt; init,
103+
- (4), (5) : `comp` によって既にソート済みである場合は、イテレータ間の距離(コピーコンストラクト)。未ソートのシーケンスの場合は、それらの距離について N * logN (ソート、コピーコンストラクト)。
104+
- (6), (8) : `x` の [`size`](size.md) に対して線形時間(全要素をコピー構築する)。
105+
- (7), (9) : 定数時間。ただし、`alloc` が与えられてかつ `alloc != y.`[`get_allocator`](get_allocator.md)`()` の場合は線形時間。
106+
-- (10), (11) : `init` の要素数に対して線形時間。
107+
+- (10), (11) : `comp` によって既にソート済みである場合は、`init` のサイズ(コピーコンストラクト)。未ソートの `init` の場合は、`init` のサイズについて N * logN (ソート、コピーコンストラクト)。
108+
109+
110+
## 備考
111+
&lt;/code&gt;&lt;/pre&gt;</summary>
112+
113+
<author>
114+
<name>suomesta</name>
115+
<email>[email protected]</email>
116+
</author>
117+
</entry>
118+
9119
<entry>
10120
<title>exclusive_scan -- partial_sum, inclusive_scan, exclusive_scanを相互に関連項目として記載</title>
11121
<link href="https://cpprefjp.github.io/reference/numeric/exclusive_scan.html"/>
@@ -219,130 +329,4 @@ index d983554ab..07100b6ad 100644
219329
</author>
220330
</entry>
221331

222-
<entry>
223-
<title>apply_givens_rotation -- linalg : apply_givens_rotationに例を追加 (#1233)</title>
224-
<link href="https://cpprefjp.github.io/reference/linalg/apply_givens_rotation.html"/>
225-
<id>271535ed9d6e4e0041c66866fa0a3290122ac8f6:reference/linalg/apply_givens_rotation.md</id>
226-
<updated>2024-07-25T21:07:33+09:00</updated>
227-
228-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/linalg/apply_givens_rotation.md b/reference/linalg/apply_givens_rotation.md
229-
index 1e8d4ed20..409f6a594 100644
230-
--- a/reference/linalg/apply_givens_rotation.md
231-
+++ b/reference/linalg/apply_givens_rotation.md
232-
@@ -98,9 +98,107 @@ $$
233-
234-
235-
## 例
236-
+**[注意] 処理系にあるコンパイラで確認していないため、間違っているかもしれません。**
237-
+
238-
+```cpp example
239-
+#include &amp;lt;cmath&amp;gt;
240-
+#include &amp;lt;complex&amp;gt;
241-
+#include &amp;lt;initializer_list&amp;gt;
242-
+#include &amp;lt;execution&amp;gt;
243-
+#include &amp;lt;iostream&amp;gt;
244-
+#include &amp;lt;linalg&amp;gt;
245-
+#include &amp;lt;mdspan&amp;gt;
246-
+#include &amp;lt;vector&amp;gt;
247-
+
248-
+template &amp;lt;class Vector&amp;gt;
249-
+void print(Vector v) {
250-
+ for (int i = 0; i &amp;lt; v.extent(0) - 1; ++i) {
251-
+ std::cout &amp;lt;&amp;lt; v[i] &amp;lt;&amp;lt; &amp;#34;, &amp;#34;;
252-
+ }
253-
+ std::cout &amp;lt;&amp;lt; v[v.extent(0) - 1] &amp;lt;&amp;lt; std::endl;
254-
+}
255-
+
256-
+int main()
257-
+{
258-
+ constexpr size_t N = 2;
259-
+
260-
+ using Complex = std::complex&amp;lt;double&amp;gt;;
261-
+
262-
+ {
263-
+ std::initializer_list&amp;lt;double&amp;gt; a_coeff = {1, std::sqrt(3.0)};
264-
+ std::initializer_list&amp;lt;double&amp;gt; b_coeff = {std::sqrt(3.0), -0.5};
265-
+
266-
+ std::vector&amp;lt;double&amp;gt; a_vec(a_coeff);
267-
+ std::mdspan a(a_vec.data(), N);
268-
+
269-
+ std::vector&amp;lt;double&amp;gt; b_vec(b_coeff);
270-
+ std::mdspan b(b_vec.data(), N);
271-
+
272-
+ double c = 0.5;
273-
+ double s = -std::sqrt(3.0) / 2;
274-
+
275-
+ // (1)
276-
+ std::linalg::apply_givens_rotation(a, b, c, s);
277-
+ print(a);
278-
+ print(b);
279-
+
280-
+ // (2)
281-
+ // aとbを初期化
282-
+ a_vec = a_coeff;
283-
+ b_vec = b_coeff;
284-
+ std::linalg::apply_givens_rotation(std::execution::par, a, b, c, s);
285-
+ print(a);
286-
+ print(b);
287-
+ }
288-
+
289-
+ {
290-
+ std::initializer_list&amp;lt;Complex&amp;gt; a_coeff = {Complex{1, 0}, Complex{std::sqrt(3.0), 0}};
291-
+ std::initializer_list&amp;lt;Complex&amp;gt; b_coeff = {Complex{0, std::sqrt(3.0)}, Complex{0, -0.5}};
292-
+
293-
+ std::vector&amp;lt;Complex&amp;gt; a_vec(a_coeff);
294-
+ std::mdspan a(a_vec.data(), N);
295-
+
296-
+ std::vector&amp;lt;Complex&amp;gt; b_vec(b_coeff);
297-
+ std::mdspan b(b_vec.data(), N);
298-
+
299-
+ double c = 0.5;
300-
+ Complex s = Complex{0, -std::sqrt(3.0) / 2};
301-
+
302-
+ // (3)
303-
+ std::linalg::apply_givens_rotation(a, b, c, s);
304-
+ print(a);
305-
+ print(b);
306-
+
307-
+ // (4)
308-
+ // aとbを初期化
309-
+ a_vec = a_coeff;
310-
+ b_vec = b_coeff;
311-
+ std::linalg::apply_givens_rotation(std::execution::par, a, b, c, s);
312-
+ print(a);
313-
+ print(b);
314-
+ }
315-
+
316-
+ return 0;
317-
+}
318-
+```
319-
+* std::linalg::apply_givens_rotation[color ff0000]
320-
321-
322-
### 出力
323-
+```
324-
+(1)
325-
+1, 0
326-
+0, -1
327-
+(2)
328-
+1, 0
329-
+0, -1
330-
+(3)
331-
+(1,0), (0,0)
332-
+(0,0), (0,-1)
333-
+(4)
334-
+(1,0), (0,0)
335-
+(0,0), (0,-1)
336-
+```
337-
338-
339-
## バージョン
340-
&lt;/code&gt;&lt;/pre&gt;</summary>
341-
342-
<author>
343-
<name>Yuya Asano</name>
344-
<email>[email protected]</email>
345-
</author>
346-
</entry>
347-
348332
</feed>

sitemap.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12932,7 +12932,7 @@
1293212932

1293312933
<url>
1293412934
<loc>https://cpprefjp.github.io/reference/map/map/op_constructor.html</loc>
12935-
<lastmod>2024-07-18T22:14:56+09:00</lastmod>
12935+
<lastmod>2024-07-27T17:57:30+09:00</lastmod>
1293612936
<changefreq>daily</changefreq>
1293712937
<priority>0.6</priority>
1293812938
</url>
@@ -13247,7 +13247,7 @@
1324713247

1324813248
<url>
1324913249
<loc>https://cpprefjp.github.io/reference/map/multimap/op_constructor.html</loc>
13250-
<lastmod>2024-07-18T22:14:56+09:00</lastmod>
13250+
<lastmod>2024-07-27T17:57:30+09:00</lastmod>
1325113251
<changefreq>daily</changefreq>
1325213252
<priority>0.6</priority>
1325313253
</url>
@@ -29270,7 +29270,7 @@
2927029270

2927129271
<url>
2927229272
<loc>https://cpprefjp.github.io/reference/set/multiset/op_constructor.html</loc>
29273-
<lastmod>2024-07-18T22:14:56+09:00</lastmod>
29273+
<lastmod>2024-07-27T17:57:30+09:00</lastmod>
2927429274
<changefreq>daily</changefreq>
2927529275
<priority>0.6</priority>
2927629276
</url>
@@ -29557,7 +29557,7 @@
2955729557

2955829558
<url>
2955929559
<loc>https://cpprefjp.github.io/reference/set/set/op_constructor.html</loc>
29560-
<lastmod>2024-07-18T22:14:56+09:00</lastmod>
29560+
<lastmod>2024-07-27T17:57:30+09:00</lastmod>
2956129561
<changefreq>daily</changefreq>
2956229562
<priority>0.6</priority>
2956329563
</url>

0 commit comments

Comments
 (0)