Skip to content

Commit

Permalink
moved to scipy.linalg.lstsq with gelsy
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlib committed Feb 25, 2024
1 parent e6032a5 commit 8813e2e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions openptv_python/orientation.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,14 +639,14 @@ def raw_orient(

# Solve the linear system
beta, residuals, rank, singular_values = scipy.linalg.lstsq(
X, y
X, y, lapack_driver='gelsy'
) # , rcond=None)

# Interpret the results
# print("Coefficients (beta):", beta)
# print("Residuals:", residuals)
# print("rank:", rank)
# print("singular_values:", singular_values)
print("Coefficients (beta):", beta)
print("Residuals:", residuals)
print("rank:", rank)
print("singular_values:", singular_values)

stopflag = True
for i in range(6):
Expand Down

0 comments on commit 8813e2e

Please sign in to comment.