-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Support single precision in linalg, don't coerce to double #3722
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
Comments
Current status need checking. |
More true now than ever: from #10888 (which I'll close): |
Just came across this one - it seems quite low prio. Given that we have conda and binary wheels for all mainstream platforms now, the rationale for the existence of |
lapack_lite already has full single support - it's simply a port of a list of Fortran functions, and all type variants of each function should have made that list. The issue is that linalg upcasts singles to doubles. Perhaps the tile should be adjusted. |
Adjusted the title to refer to |
There is another discussion related to this somewhere. AFAICT, the problem is a decision made back at the beginning that NumPy should only support double precision, leaving single precision to SciPy. That doesn't make a lot of sense to me, I think the original basis for that was that lapack-lite only supported double precision back in the beginning. If we do decide on single precision support we might want to update the ffts as well. |
Agreed that we should try to be general as is possible without making a huge effort - all our |
That's probably a bit irrelevant right now. Thinking about what the use cases for
or am I missing one? For (2) there's no need to worry about single precision, because
FFTs are a bit of a different case, because we can share the effort on PocketFFT between projects. |
But @eric-wieser mentioned that |
I think we already expose single-precision at the |
Okay, that makes sense to fix then (after thinking about backwards compat). It has very little to do with |
OK, better title - agreed that mine had left it ambiguous whether the single precision lapack_lite needed work.
A number of single precision functions look to have come in with the gufunc work. It would be good to support them in all of the current routines.
The text was updated successfully, but these errors were encountered: