Update numethods/orthogonal.py

This commit is contained in:
2025-09-11 16:42:40 +03:00
parent 546f7b1382
commit 24075f617d

View File

@@ -123,6 +123,6 @@ class LeastSquaresSolver:
]
# Take only first n entries
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)])
return backward_substitution(Rtop, Qtb)