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

Solver for least square problems #240

Closed
Michael-T-McCann opened this issue Mar 3, 2022 · 0 comments · Fixed by #354
Closed

Solver for least square problems #240

Michael-T-McCann opened this issue Mar 3, 2022 · 0 comments · Fixed by #354
Labels
enhancement New feature or request

Comments

@Michael-T-McCann
Copy link
Contributor

Currently, solving a simple least squares problem, min_x || Ax - b ||, in SCICO requires calling conjugate gradient on ATA and ATb. For a user without much inverse problem experience, this may not be intuitive. Let's add a solver like numpy.linalg.lstsq that takes A and b as input.

Easy approach: just make a wrapper around the existing CG.

@Michael-T-McCann Michael-T-McCann added the enhancement New feature or request label Mar 3, 2022
@bwohlberg bwohlberg linked a pull request Oct 20, 2022 that will close this issue
bwohlberg added a commit that referenced this issue Oct 24, 2022
* Add docs and implementation of parameter that had no effect

* Add least squares solver function

* Docs fix

* Move support for optional x0 into cg function

* Resolve mypy error

* Typo fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant