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
BUG: sparse.linalg: preserve column vector kind in iterative solvers #8723
base: main
Are you sure you want to change the base?
Conversation
Ensure iterative solvers return solution `x` as a similar vector as the input `b` is, retaining shape and ndarray vs matrix.
Should we still aim to decide on this before the approaching @rgommers Concerned re back compat? |
I only had time for a quick browse. It seems like the main issue is that 1-D array input now results in a different output shape, |
There seem to be quite a few iterative solvers, so I suspect we need to be comfortable changing the outputs from all of them -- both in terms of retaining shape & fidelity to input object type. Doesn't look like anything would change from buggy to correct or the other way around, but strict user or library code could certainly require some modest maintenance. If we didn't have back-compat concerns it would sound straightforward, but I've not touched the code on the sparse linear solvers. @perimosocordiae thoughts on disruption vs. benefit? |
Bumping milestone -- would be good to have a few people chime in before this kind of decision |
Similar comment as for the last release -- I'm bumping the milestone because there's a behavior change that we may not be able to make at this point, and there's no feedback on this. The linked issue has also been quiet for the last year, so perhaps not much evidence of major disruption to users. |
Sorry I missed the pings on this one! I'm leaning toward documenting this behavior better, rather than changing output types. As we (the scientific Python ecosystem) continue to move away from using For now, I'll drop the milestone. |
Ensure iterative solvers return solution
x
as a similar vector as theinput
b
is, retaining shape and ndarray vs matrix.The issue in the original make_system code is obvious, but there are backward
compat issues which need to be considered (in particular, whether the
behavior can even be changed any more or should just be documented better).
cf. gh-8722