Skip to content

Commit 24af120

Browse files
Variables in the same order than assignments
1 parent 777237f commit 24af120

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Math-Matrix/PMSingularValueDecomposition.class.st

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ PMSingularValueDecomposition class >> decompose: aMatrix [
4646

4747
{ #category : #initialization }
4848
PMSingularValueDecomposition >> initialize: aMatrix [
49-
| symU symV eigenU eigenV diag m n |
49+
50+
| m n symU symV eigenU eigenV diag |
5051
m := aMatrix numberOfRows.
5152
n := aMatrix numberOfColumns.
5253
symU := aMatrix * aMatrix transpose.
@@ -58,8 +59,8 @@ PMSingularValueDecomposition >> initialize: aMatrix [
5859
u := (PMMatrix rows: eigenU vectors) transpose.
5960
v := (PMMatrix rows: eigenV vectors) transpose.
6061
diag := m < n
61-
ifTrue: [ eigenU values ]
62-
ifFalse: [ eigenV values ].
62+
ifTrue: [ eigenU values ]
63+
ifFalse: [ eigenV values ].
6364
s := PMMatrix rows: m columns: n random: 0.
6465
s setDiagonal: diag sqrt
6566
]

0 commit comments

Comments
 (0)