-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
BUG: sparse: fix 1D for vstack/hstack and Improve 1D error msgs in h/v-stacks/kron/kronsum #21108
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
Conversation
Should be fine unless the review takes forever. I don't have a concrete timeline for |
Thanks for fixing this, Dan. I left some optional tweaks to the |
Co-authored-by: CJ Carey <perimosocordiae@gmail.com>
Oops, didn't realize the test would fail:
|
Merged! Thanks @dschult |
…v-stacks/kron/kronsum (scipy#21108) * fix 1D for vstack/hstack and Improve 1D err msg stacks & kron/kronsum * improve error messages in kronsum Co-authored-by: CJ Carey <perimosocordiae@gmail.com> * adjust exception test match string --------- Co-authored-by: CJ Carey <perimosocordiae@gmail.com>
…v-stacks/kron/kronsum (scipy#21108) * fix 1D for vstack/hstack and Improve 1D err msg stacks & kron/kronsum * improve error messages in kronsum Co-authored-by: CJ Carey <perimosocordiae@gmail.com> * adjust exception test match string --------- Co-authored-by: CJ Carey <perimosocordiae@gmail.com>
Fixes #21064
Some construction functions (like hstack and vstack) do not handle 1D input well for some formats. The shape was assumed to be 2D and not checked for 1D. This PR:
kron
andkronsum
when 1D input it used,_construct.py
by using_shape_as_2d
where neededThis might be too late, but if possible, it would be good to get this into 1.14.1. @tylerjereddy