[mlpack-git] [mlpack/mlpack] Binarize Function + Test (#666)
stereomatchingkiss
notifications at github.com
Wed Jun 8 23:15:06 EDT 2016
If you prefer single thread version(or mixed them according to the size of matrix), std::transform can make things easier
```
std::transform(input.memptr(), input.memptr() + input.n_elems,
output.memptr(), [=](T val){ return val > threshold > 1 : 0; });
```
---
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/666#issuecomment-224790383
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160608/bd32181a/attachment.html>
More information about the mlpack-git
mailing list