File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,8 @@ PMSingularValueDecomposition class >> decompose: aMatrix [
4646
4747{ #category : #initialization }
4848PMSingularValueDecomposition >> 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]
You can’t perform that action at this time.
0 commit comments