-
-
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
Make findn and findnz behavior match nnz #24724
Conversation
vectors is nnz. Fixes #23121
Longer term is pretty short these days. :-) I agree it would make sense to restrict Maybe |
Why not the other way around? Having the value seems useful.
I don't understand the reason for this suggestion. Could you explain?
Probably not. This would be much more expensive than the current |
That's useful, but other
The goal was in the next sentence: " |
Since it is currently not consistent with
and similar return cartesian indices array types that have |
Well, at least we have a consistent proposal to use
See JuliaLang/Juleps#27 and #20684. I think we need to discuss this seriously before 0.7. |
I'll merge this one since the renaming can happen independently from this change which just makes the behavior more consistent. |
Have we a tracking issue for the tangential topics? And if so, should we apply a triage label? Best! |
See #24865 about |
This PR should have updated the |
such that length of returned vectors is
nnz
.This is a minimal fix of #23121.
Longer term we should consider the names of these functions. It has previously been proposed that the
n
andnz
part should be something likefilled
/stored
. However, there is also an inconsistency in thefind
part because somefind
functions only return a (linear) index (even it doesn't makes sense such as for dictionaries) while others return both indices and values.