File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 55}
66
77{ #category : #running }
8- PMQRTest >> mpTestFunction : aMatrix [
8+ PMQRTest >> assert: inverse isInverseOf : aMatrix [
99
10- | inverse identityMatrix |
11- inverse := aMatrix mpInverse.
10+ | identityMatrix |
1211 identityMatrix := inverse * aMatrix.
1312 self assert: (aMatrix * identityMatrix closeTo: aMatrix).
1413 self assert: identityMatrix * inverse closeTo: inverse.
@@ -17,6 +16,15 @@ PMQRTest >> mpTestFunction: aMatrix [
1716 self assert: identityMatrix transpose closeTo: identityMatrix
1817]
1918
19+ { #category : #running }
20+ PMQRTest >> mpTestFunction: aMatrix [
21+
22+ | inverse |
23+ inverse := aMatrix mpInverse.
24+ self assert: inverse isInverseOf: aMatrix.
25+
26+ ]
27+
2028{ #category : #tests }
2129PMQRTest >> testMoorePenroseInverse [
2230
You can’t perform that action at this time.
0 commit comments