-
Notifications
You must be signed in to change notification settings - Fork 86
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
Support in numba njit #167
Comments
I agree that numba is pretty great, and I actually use it in a few places in this package. Unfortunately, the maintainers of numba have made it clear that they won't be putting much effort into doing things like supporting custom dtypes, or For now, and for the foreseeable future, there are only a couple alternatives that I know of:
|
Well the core issue is in both cases the need to convert into plain arrays for numba jitted functions to be able to use quats... |
Numba is amazing, and it can readily deal with numpy arrays. numpy-quaternion is fast on its own, but functions using it can not be jit-compiled by numba:
@numba.njit() def t(): return np.quaternion(1,0,0,0)
Clearly, it would be amazing to have numba be able to support also cases when dtype=quaternion. I am unsure if there is any way to make it happen, but would be really cool.
In the best case one should be able to just place @njit on functions using quaternions and not care about anything. I am currently using my own implementation of quaternions in python targeting numba njit, and it is fairly fast (but uncomfortable to use).
Let me know what you think.
The text was updated successfully, but these errors were encountered: