[mlpack-git] [mlpack/mlpack] Hilbert R tree (#664)
Ryan Curtin
notifications at github.com
Tue Jun 21 15:13:36 EDT 2016
> + arma::Mat<HilbertElemType>*& LocalDataset() { return localDataset; }
> +
> + //! Modify the valueToInsert
> + arma::Col<HilbertElemType>* ValueToInsert() { return valueToInsert; }
> +
> + //! Modify the valueToInsert
> + const arma::Col<HilbertElemType>* ValueToInsert() const
> + { return valueToInsert; }
> +
> + private:
> + //! The number of bits that we can store
> + static constexpr size_t order = sizeof(HilbertElemType) * CHAR_BIT;
> + //! The local dataset
> + arma::Mat<HilbertElemType>* localDataset;
> + //! Indicates that the node owns the local dataset
> + bool ownsLocalDataset;
It may also make sense here to just store localDataset as an `arma::Mat<HilbertElemType>` instead of a pointer to one, and then you wouldn't need `ownsLocalDataset`. If the goal was to avoid copying the data of another `DiscreteHilbertValue`'s `localDataset` object, you could use the move constructor for Armadillo matrices.
---
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/664/files/f9127cea62d5ce1ad8d5f59931de108a2f7cdd9b#r67933244
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160621/98c220ab/attachment.html>
More information about the mlpack-git
mailing list