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

MarcosPividori notifications at github.com
Mon Aug 29 14:43:04 EDT 2016


@rcurtin  Thanks for your comments!
I agree that we should provide access to the reference tree, through a method like ReferenceTree(), so users can get it back in case this is necessary. I have updated the code including your suggestions.
However, with current implementation, we can't do what you proposes. I mean, use the same tree for KNN and KFN, because that trees consider different statistic types (NeighborSearchStat includes a template parameter: SortPolicy), so the compiler rejects that code.

-- 
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-243215788
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160829/0c8251b4/attachment-0001.html>


More information about the mlpack-git mailing list