-
Notifications
You must be signed in to change notification settings - Fork 70
Runtime function #209
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
base: master
Are you sure you want to change the base?
Runtime function #209
Conversation
Can the current functionality for |
I believe so. Are you thinking it would be better to add the |
Something like:
is what I thought. So that |
Okay @KristofferC I think I have completed the updates. What do you think? |
By the way, |
Yes it is, but unfortunately it does not perform as well as the current implementation. It does save some memory but takes longer. |
Any idea why that would be? There should be no difference in the ideal case, or? Would perhaps be good to try figure out so that we don't leave performance on the table for the runtime function functionality. |
If I use a callback function I have to give it some sort of storage that is an array so I can modify the count in place. At that point get_index for that count takes extra time that the current implimentation does not have to. |
If there isn't anything else, the code should be ready to merge. |
I think this needs a rebase against master or something like that because as it is now it seems to have many unrelated changes like removing some recent updates to dosctrings etc. Also, I want to go through this properly myself before merging. Right now, I am busy with preparing for JuliaCon so it may take a little while. |
That is understandable. If you need anything from me just let me know. |
I just want to say this is not forgotten but that I am on vacation after JuliaCon and I have limited access to a computer and time etc. Should be back to normal next week. |
I have added a function:
inrange_runtime!(tree::NNTree{V}, points::AbstractVector{T}, radius::Number, runtime_function::Function)
that takes in a function as the last argument, and rather than returning the in-range indices, sends the indices to the runtime function to perform some operation.
I added a test and docstring