Skip to content

Commit 4f45356

Browse files
committed
linalg : 例の修正とコードの整理 (#1233)
Signed-off-by: Yuya Asano <64895419+sukeya@users.noreply.github.com>
1 parent 902bbca commit 4f45356

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

reference/linalg/layout_blas_packed.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ int main()
7070
// 2 5 - -
7171
// 3 6 8 -
7272
// 4 7 9 10
73-
print_mat("mat1", mat);
73+
print_mat("mat1", mat1);
7474
7575
// 行優先格納順の下三角要素から4x4対称行列を構築
7676
std::mdspan<

reference/linalg/matrix_vector_product.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ namespace std::linalg {
6464
6565
6666
## 事前条件
67-
- (1), (2), (3), (4): [`multipliable`](multipliable.md)`(A,x,y) == true`
67+
- (1), (2), (3), (4): [`multipliable`](multipliable.md)`(A, x, y) == true`
6868
- (3), (4): [`addable`](addable.md)`(x, y, z) == true`
6969
7070
@@ -123,10 +123,10 @@ int main()
123123
}
124124
125125
for(int j = 0; j < x.extent(0); ++j) {
126-
x[j] = 1.0 * j;
126+
x[j] = j;
127127
}
128128
for(int i = 0; i < y.extent(0); ++i) {
129-
y[i] = -1.0 * i;
129+
y[i] = -i;
130130
}
131131
132132
// (1)

0 commit comments

Comments
 (0)