[mlpack] [mlpack/mlpack] Log::Info has incompatibility issue with some iomanip functions (#755)

Shikhar Bhardwaj notifications at github.com
Thu Dec 15 12:44:25 EST 2016


Thanks Ryan.

Turns out that just syncing the flags and precision between `destination` and `convert` will be enough, without needing extra overloads.

Printing Armadillo objects with set precision is not possible with this approach AFAICS, as the overloads for `operator<<` called are defined by Armadillo.

Armadillo does provide a `raw_print` method to print without modifying the stream flags but that would require an overload approach on the `baseLogic`(?)

I'll create a PR ASAP with the changes for floating-point types.

-- 
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-267392815
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://knife.lugatgt.org/pipermail/mlpack/attachments/20161215/bd930a6b/attachment.html>


More information about the mlpack mailing list