[mlpack-git] [mlpack/mlpack] Lsh table access (#663)

Ryan Curtin notifications at github.com
Wed Jun 1 09:50:38 EDT 2016


> @@ -518,7 +542,7 @@ void LSHSearch<SortPolicy>::Serialize(Archive& ar,
>  
>    // Delete existing projections, if necessary.
>    if (Archive::is_loading::value)
> -    projections.clear();
> +    projections.zeros(0, 0, 0); // TODO: correct way to clear this?

`.reset()` is probably the easiest way to clear the cube.

---
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/663/files/7ebf1daa6de66aa5c047b27ff61866c52fa295d6#r65363172
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160601/b6cd6e15/attachment.html>


More information about the mlpack-git mailing list