Skip to content

Commit b270613

Browse files
Made similar code even more similar.
1 parent 1bd0578 commit b270613

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Math-Matrix/PMQRDecomposition.class.st

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ PMQRDecomposition >> decomposeWithPivot [
7979
rank := 0.
8080
identityMatrix := PMSymmetricMatrix identity: colSize.
8181
[
82-
| householderMatrix |
82+
| householderMatrix columnVectorFromRMatrix |
8383
rank := rank + 1.
8484
pivot at: rank put: mx.
8585
r swapColumn: rank withColumn: mx.
8686
vectorOfNormSquareds swap: rank with: mx.
87-
householderVector := (r columnVectorAt: rank size: colSize)
88-
householder.
87+
columnVectorFromRMatrix := r columnVectorAt: rank size: colSize.
88+
householderVector := columnVectorFromRMatrix householder.
8989
v := (PMVector zeros: rank - 1) , (householderVector at: 2).
9090
householderMatrix := identityMatrix
9191
-

0 commit comments

Comments
 (0)