File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -16,15 +16,15 @@ PMQRTest >> assert: inverse isMoorePenroseInverseOf: aMatrix [
16
16
"
17
17
self assert: aMatrix * inverse * aMatrix closeTo: aMatrix.
18
18
self assert: inverse * aMatrix * inverse closeTo: inverse.
19
+
20
+ identityMatrix := aMatrix * inverse.
21
+ self assert: identityMatrix transpose closeTo: identityMatrix.
22
+ self assert: identityMatrix * aMatrix closeTo: aMatrix.
19
23
20
24
" Pseudoinversion commutes with transposition, complex conjugation, and taking the conjugate transpose"
21
25
self
22
26
assert: aMatrix transpose mpInverse
23
27
closeTo: aMatrix mpInverse transpose.
24
-
25
- identityMatrix := aMatrix * inverse.
26
- self assert: identityMatrix transpose closeTo: identityMatrix.
27
- self assert: identityMatrix * aMatrix closeTo: aMatrix
28
28
]
29
29
30
30
{ #category : #tests }
You can’t perform that action at this time.
0 commit comments