-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Implement Cython functions as Numpy ufuncs #72
Comments
That would be nice! My only hesitation is that we might lose the benefits of multi-threading? (I don't think Numpy applies ufuncs in a multi-threaded way?) |
Sure, you can run ufuncs in multithreaded code. Nothing stops you from releasing the GIL inside your ufunc loop function. |
Actually, looking at the Numpy source code, I kind of think that Numpy itself releases the GIL while it is calling your ufunc loop function. |
@lpsinger - ok cool! If this is something you fancy working on, please feel free to as I don't know much about ufuncs :) |
This eliminates the need for much of the explicit broadasting and type checking. At the moment, the patch just implements `healpix_to_lonlat_ring`. I'd like to ask for feedback on the basic approach before undertaking conversion of the other functions. Fixes astropy#72.
This eliminates the need for much of the explicit broadasting and type checking. At the moment, the patch just implements `healpix_to_lonlat`. I'd like to ask for feedback on the basic approach before undertaking conversion of the other functions. Fixes astropy#72.
This eliminates the need for much of the explicit broadasting and type checking. At the moment, the patch just implements `healpix_to_lonlat`. I'd like to ask for feedback on the basic approach before undertaking conversion of the other functions. Fixes astropy#72.
This eliminates the need for much of the explicit broadasting and type checking. At the moment, the patch just implements `healpix_to_lonlat`. I'd like to ask for feedback on the basic approach before undertaking conversion of the other functions. Fixes astropy#72.
This eliminates the need for much of the explicit broadasting and type checking. At the moment, the patch just implements `healpix_to_lonlat`. I'd like to ask for feedback on the basic approach before undertaking conversion of the other functions. Fixes astropy#72.
As a result, broadcasting across nside and ipix is supported automatically. Fixes astropy#72.
As a result, broadcasting across nside and ipix is supported automatically. Fixes astropy#72.
As a result, broadcasting across nside and ipix is supported automatically. Fixes astropy#72, astropy#75.
As a result, broadcasting across nside and ipix is supported automatically. Fixes astropy#72, closes astropy#75.
As a result, broadcasting across nside and ipix is supported automatically. Fixes astropy#72, closes astropy#75.
As a result, broadcasting across nside and ipix is supported automatically. Fixes astropy#72, closes astropy#75.
As a result, broadcasting across nside and ipix is supported automatically. Fixes astropy#72, closes astropy#75.
As a result, broadcasting across nside and ipix is supported automatically. Fixes astropy#72, closes astropy#75.
As a result, broadcasting across nside and ipix is supported automatically. Fixes astropy#72, closes astropy#75.
As a result, broadcasting across nside and ipix is supported automatically. Fixes astropy#72, closes astropy#75.
This will eliminate the need for all of the manual broadcasting and type checking.
I have written lots of examples in plain C, but there are also examples in Cython.
The text was updated successfully, but these errors were encountered: