We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 205918f commit b67cdf9Copy full SHA for b67cdf9
src/Math-Tests-Matrix/PMQRTest.class.st
@@ -6,14 +6,16 @@ Class {
6
7
{ #category : #running }
8
PMQRTest >> assert: inverse isInverseOf: aMatrix [
9
+ "A~ * A = A * A~ = I"
10
11
| identityMatrix |
12
identityMatrix := inverse * aMatrix.
13
self assert: (aMatrix * identityMatrix closeTo: aMatrix).
14
self assert: identityMatrix * inverse closeTo: inverse.
15
self assert: identityMatrix transpose closeTo: identityMatrix.
16
identityMatrix := aMatrix * inverse.
- self assert: identityMatrix transpose closeTo: identityMatrix
17
+ self assert: identityMatrix transpose closeTo: identityMatrix.
18
+ self assert: (identityMatrix * aMatrix) closeTo: aMatrix.
19
]
20
21
0 commit comments