[mlpack-git] [mlpack/mlpack] Vantage point tree (#708)

Ryan Curtin notifications at github.com
Thu Jul 21 19:25:22 EDT 2016


> + */
> +#ifndef MLPACK_CORE_TREE_BINARY_SPACE_TREE_VANTAGE_POINT_SPLIT_IMPL_HPP
> +#define MLPACK_CORE_TREE_BINARY_SPACE_TREE_VANTAGE_POINT_SPLIT_IMPL_HPP
> +
> +#include "vantage_point_split.hpp"
> +#include <mlpack/core/tree/bounds.hpp>
> +
> +namespace mlpack {
> +namespace tree {
> +
> +template<typename BoundType, typename MatType>
> +bool VantagePointSplit<BoundType, MatType>::
> +SplitNode(const BoundType& bound, MatType& data, const size_t begin,
> +    const size_t count, size_t& splitCol)
> +{
> +  typename BoundType::ElemType mu;

Couldn't you just use `ElemType` here?  We should be guaranteed that `BoundType::ElemType == MatType::elem_type`.

---
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/708/files/300882ac96e7a663e3e303ca0c45c14c6fafe1a6#r71805361
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160721/a44283f5/attachment-0001.html>


More information about the mlpack-git mailing list