Skip to content

Commit c348fa5

Browse files
committed
Remove alternative implementations
1 parent 953e4e3 commit c348fa5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/solve.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,9 @@ end
7272
y = q.Q' * b
7373
if Sa[1] > Sa[2]
7474
R₁ = SMatrix{Sa[2], Sa[2]}(q.R[SOneTo(Sa[2]), SOneTo(Sa[2])])
75-
# return inv(R₁) * y
76-
return R₁ \ y
75+
R₁ \ y
7776
else
78-
return q.R' * ((q.R * q.R') \ y)
79-
# return pinv(q.R) * y
77+
q.R' * ((q.R * q.R') \ y)
8078
end
8179
end
8280
end

0 commit comments

Comments
 (0)