Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flamp.qr_solve silently fails when A has zeros #2

Open
NoahAmsel opened this issue Aug 17, 2023 · 0 comments
Open

flamp.qr_solve silently fails when A has zeros #2

NoahAmsel opened this issue Aug 17, 2023 · 0 comments

Comments

@NoahAmsel
Copy link

Compare with lstsq.

import flamp
import numpy as np
A = np.array([[0, 1]]).T
b = np.array([2, 4])
print(np.linalg.lstsq(A, b, rcond=None)[0])
print(flamp.qr_solve(A, b))

Also try setting A = np.array([[0, 1], [1, 1]]).T.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant