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 [
1616 "
1717 self assert: aMatrix * inverse * aMatrix closeTo: aMatrix.
1818 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.
1923
2024 " Pseudoinversion commutes with transposition, complex conjugation, and taking the conjugate transpose"
2125 self
2226 assert: aMatrix transpose mpInverse
2327 closeTo: aMatrix mpInverse transpose.
24-
25- identityMatrix := aMatrix * inverse.
26- self assert: identityMatrix transpose closeTo: identityMatrix.
27- self assert: identityMatrix * aMatrix closeTo: aMatrix
2828]
2929
3030{ #category : #tests }
You can’t perform that action at this time.
0 commit comments