[mlpack-git] [mlpack/mlpack] Use move semantics to set a given reference tree in NeighborSearch class. (#765)

MarcosPividori notifications at github.com
Tue Aug 23 16:28:46 EDT 2016


Hi @rcurtin ,
I have rebased on top of master. Also, I removed the `oldFromNew` parameter. Now, I adopt exactly the same approach than with previous method: `void Train(Tree* referenceTree)`  "when providing a reference tree, the points won't be mapped".
So, I added two `Train()` methods:
```
void Train(Tree& referenceTree); // Copy the reference tree.
void Train(Tree&& referenceTree); // Move the reference tree.
```
What do you think?
Thanks!

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/765#issuecomment-241867261
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160823/0e7b075c/attachment.html>


More information about the mlpack-git mailing list