File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 66
77{ #category : #running }
88PMQRTest >> assert: inverse isMoorePenroseInverseOf: aMatrix [
9+
910 " https://en.wikipedia.org/wiki/Moore–Penrose_inverse#Definition"
1011
1112 | identityMatrix |
@@ -15,13 +16,15 @@ PMQRTest >> assert: inverse isMoorePenroseInverseOf: aMatrix [
1516 "
1617 self assert: (aMatrix * inverse * aMatrix closeTo: aMatrix).
1718 self assert: inverse * aMatrix * inverse closeTo: inverse.
18-
19+
1920 " Pseudoinversion commutes with transposition, complex conjugation, and taking the conjugate transpose"
20- self assert: aMatrix transpose mpInverse closeTo: aMatrix mpInverse transpose.
21-
21+ self
22+ assert: aMatrix transpose mpInverse
23+ closeTo: aMatrix mpInverse transpose.
24+
2225 identityMatrix := aMatrix * inverse.
2326 self assert: identityMatrix transpose closeTo: identityMatrix.
24- self assert: ( identityMatrix * aMatrix) closeTo: aMatrix.
27+ self assert: identityMatrix * aMatrix closeTo: aMatrix
2528]
2629
2730{ #category : #tests }
You can’t perform that action at this time.
0 commit comments