[mlpack-git] [mlpack/mlpack] Heaps for mlpack! (#732)
MarcosPividori
notifications at github.com
Fri Jul 22 15:51:15 EDT 2016
> + {
> + //! Value of this recommendation.
> + double value;
> + //! Item of this recommendation.
> + size_t item;
> + //! Trivial constructor.
> + Candidate(double value, size_t item) :
> + value(value),
> + item(item)
> + {};
> + //! Compare the value of two candidates.
> + friend bool operator>(const Candidate& l, const Candidate& r)
> + {
> + return l.value > r.value;
> + };
> + };
@rcurtin , I have tested the modification to use std::pair in https://github.com/MarcosPividori/mlpack/tree/pair-for-heaps and I get the same runtime than when using Candidate structure.
---
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/732/files/57dd61f1d823f209c8d0f67fa69f8a8ae0669d18#r71935738
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160722/6ebce340/attachment.html>
More information about the mlpack-git
mailing list