teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

2

修正

2021/01/18 04:29

投稿

tiitoi
tiitoi

スコア21960

answer CHANGED
@@ -12,7 +12,7 @@
12
12
  std::cout << temp.inverse() << std::endl;
13
13
  ```
14
14
 
15
- temp
15
+ temp の値
16
16
  ```
17
17
  [[ 1 0 0 0 0 0 -1 0 0 0 0 0]
18
18
  [ 0 12 0 0 0 6 0 -12 0 0 0 6]

1

修正

2021/01/18 04:29

投稿

tiitoi
tiitoi

スコア21960

answer CHANGED
@@ -10,4 +10,20 @@
10
10
  std::cout << "matrix is singular." << std::endl;
11
11
  else
12
12
  std::cout << temp.inverse() << std::endl;
13
+ ```
14
+
15
+ temp
16
+ ```
17
+ [[ 1 0 0 0 0 0 -1 0 0 0 0 0]
18
+ [ 0 12 0 0 0 6 0 -12 0 0 0 6]
19
+ [ 0 0 12 0 -6 0 0 0 -12 0 -6 0]
20
+ [ 0 0 0 2 0 0 0 0 0 -2 0 0]
21
+ [ 0 0 -6 0 4 0 0 0 6 0 2 0]
22
+ [ 0 6 0 0 0 4 0 -6 0 0 0 2]
23
+ [ -1 0 0 0 0 0 1 0 0 0 0 0]
24
+ [ 0 -12 0 0 0 -6 0 12 0 0 0 -6]
25
+ [ 0 0 -12 0 6 0 0 0 12 0 6 0]
26
+ [ 0 0 0 -2 0 0 0 0 0 2 0 0]
27
+ [ 0 0 -6 0 2 0 0 0 6 0 4 0]
28
+ [ 0 6 0 0 0 2 0 -6 0 0 0 4]]
13
29
  ```