[mlpack-git] [mlpack/mlpack] parallel sgd (#603)

stereomatchingkiss notifications at github.com
Thu Apr 7 20:52:20 EDT 2016


>I think std::rand() is std::rand() is thread safe. 

Maybe yes, maybe no, it is implemented dependent as stephentu said, please check the answer of  [stack overflow](http://stackoverflow.com/questions/6161322/using-stdlibs-rand-from-multiple-threads) if you want more info.

Besides, std::rand is quite old, c++11 provide us much better choice than std::rand(if std::rand is good enough for this case, just use it). You can check out this [post ](http://stackoverflow.com/questions/32927722/how-to-use-random-to-replace-rand)if you want to know std::rand or `<random>`

---
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/603#issuecomment-207152741
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160407/519d82f1/attachment.html>


More information about the mlpack-git mailing list