Skip to content

Commit 2028b3c

Browse files
Clarified a computation using a local variable.
1 parent 5ce7fa9 commit 2028b3c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Math-Matrix/PMQRDecomposition.class.st

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@ PMQRDecomposition >> decompose [
2626
q := self initialQMatrix.
2727
identityMatrix := PMSymmetricMatrix identity: colSize.
2828
1 to: self numberOfColumns do: [ :col |
29-
householderVector := ((r columnAt: col) copyFrom: col to: colSize)
30-
householder.
29+
| columnVectorFromRMatrix |
30+
columnVectorFromRMatrix := (r columnAt: col)
31+
copyFrom: col
32+
to: colSize.
33+
householderVector := columnVectorFromRMatrix householder.
3134
i := (PMVector new: col - 1 withAll: 0) , (householderVector at: 2).
3235
q := q
3336
*

0 commit comments

Comments
 (0)