Skip to content

Commit b67cdf9

Browse files
Added an additional assertion
1 parent 205918f commit b67cdf9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Math-Tests-Matrix/PMQRTest.class.st

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@ Class {
66

77
{ #category : #running }
88
PMQRTest >> assert: inverse isInverseOf: aMatrix [
9+
"A~ * A = A * A~ = I"
910

1011
| identityMatrix |
1112
identityMatrix := inverse * aMatrix.
1213
self assert: (aMatrix * identityMatrix closeTo: aMatrix).
1314
self assert: identityMatrix * inverse closeTo: inverse.
1415
self assert: identityMatrix transpose closeTo: identityMatrix.
1516
identityMatrix := aMatrix * inverse.
16-
self assert: identityMatrix transpose closeTo: identityMatrix
17+
self assert: identityMatrix transpose closeTo: identityMatrix.
18+
self assert: (identityMatrix * aMatrix) closeTo: aMatrix.
1719
]
1820

1921
{ #category : #running }

0 commit comments

Comments
 (0)