Update numethods/orthogonal.py
This commit is contained in:
@@ -123,6 +123,6 @@ class LeastSquaresSolver:
|
|||||||
]
|
]
|
||||||
# Take only first n entries
|
# Take only first n entries
|
||||||
Qtb = Vector(Qtb_full[: self.A.n])
|
Qtb = Vector(Qtb_full[: self.A.n])
|
||||||
# Extract leading n×n block of R
|
# Extract leading nxn block of R
|
||||||
Rtop = Matrix([R.data[i][: self.A.n] for i in range(self.A.n)])
|
Rtop = Matrix([R.data[i][: self.A.n] for i in range(self.A.n)])
|
||||||
return backward_substitution(Rtop, Qtb)
|
return backward_substitution(Rtop, Qtb)
|
||||||
|
Reference in New Issue
Block a user