Skip to content

Commit df133b7

Browse files
Clarified the names of some local variables.
1 parent ceab081 commit df133b7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ Class {
77
{ #category : #running }
88
PMQRTest >> mpTestFunction: aMatrix [
99

10-
| inv mult |
11-
inv := aMatrix mpInverse.
12-
mult := inv * aMatrix.
13-
self assert: (aMatrix * mult closeTo: aMatrix).
14-
self assert: mult * inv closeTo: inv.
15-
self assert: mult transpose closeTo: mult.
16-
mult := aMatrix * inv.
10+
| inverse mult identityMatrix |
11+
inverse := aMatrix mpInverse.
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+
mult := aMatrix * inverse.
1717
self assert: mult transpose closeTo: mult
1818
]
1919

0 commit comments

Comments
 (0)