Skip to content
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

use numpy sinc #3175

Merged
merged 2 commits into from
Dec 29, 2013
Merged

use numpy sinc #3175

merged 2 commits into from
Dec 29, 2013

Conversation

argriffing
Copy link
Contributor

No description provided.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 7cc24c1 on argriffing:remove-sinc into 371b4ff on scipy:master.

@rgommers
Copy link
Member

+1, no need to duplicate this function.

I checked the numpy implementation, and that looks fine to me. The 1e-20 used there doesn't affect the precision it seems.

@rgommers
Copy link
Member

The tests for special.sinc should also be removed in this PR.

EDIT: maybe keep a very basic one to check that the function still exists in the special namespace.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 284023e on argriffing:remove-sinc into 371b4ff on scipy:master.

@argriffing
Copy link
Contributor Author

@rgommers I removed most of the testing.

@rgommers
Copy link
Member

Thanks, merging.

rgommers added a commit that referenced this pull request Dec 29, 2013
Use numpy sinc instead of re-implementing it in scipy.special
@rgommers rgommers merged commit 7eca39e into scipy:master Dec 29, 2013
@rgommers rgommers mentioned this pull request Dec 29, 2013
@endolith
Copy link
Member

Would it make sense to move the tests and implementation into numpy instead of just deleting them? scipy's implementation makes more sense to me than something that depends on float inaccuracy.

@argriffing
Copy link
Contributor Author

@endolith The numpy sinc passed the scipy tests, and numpy has its own more extensive sinc testing. On the other hand I'd like a new C sinc ufunc implementation in either numpy or scipy.

@rgommers
Copy link
Member

New ufunc would indeed be nice. That should go into numpy and replace its current implementation imho.

@argriffing
Copy link
Contributor Author

New ufunc would indeed be nice. That should go into numpy and replace its current implementation imho.

related: numpy/numpy#7322

@madphysicist
Copy link
Contributor

For the immediate future, numpy/numpy#7322 will actually remove the possibility of making np.sinc into a ufunc. However, I also have plans to work around that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants