-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
filter
alters input values in arrays
#33974
Comments
Something with #31929 maybe? |
It has something to do with the Line 2367 in c7e9d9f
Before the
after
Could it be something with #26201? |
filter
alters input values in arrays with NaNsfilter
alters input values in arrays
The NaN is a red herring
has the same bug |
I see, in my testing I replaced NaNs with a value that satisfied the predicate. Thanks for having a look! |
Reverting #26201 does fix it. (which perhaps isn't so strange since it basically turns it into a noop for this case) |
(cherry picked from commit bc82c35)
(cherry picked from commit bc82c35)
(cherry picked from commit bc82c35)
(cherry picked from commit bc82c35)
Under julia 1.3,
filter
produces wrong output in the following example (see the tail ofvals_filt
):In contrast, the equivalent
works correctly.
Versioninfo (path information manually removed):
If I do any of the following, the bug disappears:
n
to 11000000 and/ork
to 256000000The text was updated successfully, but these errors were encountered: