Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Use Numpy C-API version of np.float64(x) #20

Closed
kwgoodman opened this Issue Apr 16, 2011 · 1 comment

Comments

Projects
None yet
1 participant
Owner

kwgoodman commented Apr 16, 2011

The cython functions in bottleneck that return a scalar make that scalar a numpy object with dtype attribute etc by using:

>>> np.float64(x)

And similarly for other dtypes.

Is there a faster (but simple) way to do this using the Numpy C API?

Owner

kwgoodman commented Feb 4, 2015

The rewrite of bottleneck no longer returns np.float64(x). It just returns x instead.

@kwgoodman kwgoodman closed this Feb 4, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment