Skip to content

Commit 5e743f5

Browse files
committed
linalg : レイアウトの調整とargmaxのエラーを修正 (#1233)
Signed-off-by: Yuya Asano <64895419+sukeya@users.noreply.github.com>
1 parent c7e4c78 commit 5e743f5

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

reference/linalg/vector_abs_sum.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,18 @@ namespace std::linalg {
4848
4949
## 戻り値
5050
- (1), (2): `N`を`v`の次元`v.extent(0)`とすると、以下を返す。
51-
- もし`N`が0なら`init`
52-
- そうでない場合、もし`InVec::value_type`が算術型なら以下の式の値
51+
+ もし`N`が0なら`init`
52+
+ そうでない場合、もし`InVec::value_type`が算術型なら以下の式の値
5353
54-
$$
55-
\sum_{i = 0}^{N - 1} |\verb|v[|i\verb|]|| + \verb|init|
56-
$$
54+
$$
55+
\sum_{i = 0}^{N - 1} |\verb|v[|i\verb|]|| + \verb|init|
56+
$$
5757
58-
- そうでない場合、以下の式の値
58+
+ そうでない場合、以下の式の値
5959
60-
$$
61-
\sum_{i = 0}^{N - 1} \left\{|\mathrm{Re}(\verb|v[|i\verb|]|)| + |\mathrm{Im}(\verb|v[|i\verb|]|)|\right\} + \verb|init|
62-
$$
60+
$$
61+
\sum_{i = 0}^{N - 1} \left\{|\mathrm{Re}(\verb|v[|i\verb|]|)| + |\mathrm{Im}(\verb|v[|i\verb|]|)|\right\} + \verb|init|
62+
$$
6363
6464
6565
- (3), (4): `T`を`typename InVec::value_type`とすると、

reference/linalg/vector_idx_abs_max.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ namespace std::linalg {
3535
+ もし`N`が0なら[`std::numeric_limits`](/reference/limits/numeric_limits.md)`<typename InVec::size_type>::max()`
3636
+ そうでない場合、もし`InVec::value_type`が算術型なら絶対値が最大の最初の`v`の成分のインデックス。つまり、
3737
38-
$$
39-
\argmax_{i = 0, \dots, N - 1} |\verb|v[|i\verb|]||
40-
$$
38+
$$
39+
\mathop{\mathrm{argmax}}\limits_{i = 0, \dots, N - 1} |\verb|v[|i\verb|]||
40+
$$
4141
4242
+ そうでない場合、
4343
44-
$$
45-
\argmax_{i = 0, \dots, N - 1}\left\{|\mathrm{Re}(\verb|v[|i\verb|]|)| + |\mathrm{Im}(\verb|v[|i\verb|]|)|\right\}
46-
$$
44+
$$
45+
\mathop{\mathrm{argmax}}\limits_{i = 0, \dots, N - 1}\left\{|\mathrm{Re}(\verb|v[|i\verb|]|)| + |\mathrm{Im}(\verb|v[|i\verb|]|)|\right\}
46+
$$
4747
4848
4949
## 例

reference/linalg/vector_sum_of_squares.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# sum_of_squares_result
1+
# vector_sum_of_squares
22

33
* [mathjax enable]
44
* linalg[meta header]

0 commit comments

Comments
 (0)