[mlpack] [mlpack/mlpack] Log::Info has incompatibility issue with some iomanip functions (#755)
Ryan Curtin
notifications at github.com
Thu Dec 15 10:22:37 EST 2016
Hi Shikhar,
Thanks for looking into this. I think the second approach is the right one to use here. Since there should never be a newline printed as a result of printing a number, you can probably simplify the overload of `BaseLogic` greatly, too.
One thing to check will be that `std::fixed` and `std::setprecision` work with Armadillo objects, like this:
```
arma::mat m;
m.randu(5, 5);
Log::Info << std::setprecision(10) << m;
```
But even if that does not, just a patch for floating-point types only will still be a great help!
Thanks,
Ryan
--
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/issues/755#issuecomment-267354130
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://knife.lugatgt.org/pipermail/mlpack/attachments/20161215/036dfb83/attachment.html>
More information about the mlpack
mailing list