Skip to content

Commit 8cdda2d

Browse files
Brought related assertions closer together.
1 parent 00708b1 commit 8cdda2d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ PMQRTest >> assert: inverse isMoorePenroseInverseOf: aMatrix [
1616
"
1717
self assert: aMatrix * inverse * aMatrix closeTo: aMatrix.
1818
self assert: inverse * aMatrix * inverse closeTo: inverse.
19+
20+
identityMatrix := aMatrix * inverse.
21+
self assert: identityMatrix transpose closeTo: identityMatrix.
22+
self assert: identityMatrix * aMatrix closeTo: aMatrix.
1923

2024
"Pseudoinversion commutes with transposition, complex conjugation, and taking the conjugate transpose"
2125
self
2226
assert: aMatrix transpose mpInverse
2327
closeTo: aMatrix mpInverse transpose.
24-
25-
identityMatrix := aMatrix * inverse.
26-
self assert: identityMatrix transpose closeTo: identityMatrix.
27-
self assert: identityMatrix * aMatrix closeTo: aMatrix
2828
]
2929

3030
{ #category : #tests }

0 commit comments

Comments
 (0)