Skip to content

Tighten ufunc casting #95

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

Merged
merged 5 commits into from
Jun 23, 2011
Merged

Tighten ufunc casting #95

merged 5 commits into from
Jun 23, 2011

Conversation

mwiebe
Copy link
Member

@mwiebe mwiebe commented Jun 22, 2011

This tightens up the default casting rule used in ufuncs, from 'unsafe' to 'same_kind'.

http://mail.scipy.org/pipermail/numpy-discussion/2011-June/056605.html

The scipy fixes are awaiting review here:

scipy/scipy#38

Mark Wiebe added 5 commits June 22, 2011 09:09
This is an experimental change, to see what kind of ripple effects
tightening up the semantics of NumPy just a little bit produce.
Since ones_like is a ufunc (unlike zeros_like and empty_like), it by
default checks the casting rule. This disables that check completely.
@charris
Copy link
Member

charris commented Jun 23, 2011

Looks reasonable to me.

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.

2 participants