[mlpack] 108/207: Extract proxy object from abs operation in prefixedoutstream_impl.hpp
Barak A. Pearlmutter
barak+git at pearlmutter.net
Thu Mar 23 17:53:45 UTC 2017
This is an automated email from the git hooks/post-receive script.
bap pushed a commit to branch master
in repository mlpack.
commit 7d7cf9352263eeb341745d3d347296ccf293ceda
Author: shikhar <shikharbhardwaj68 at gmail.com>
Date: Fri Mar 3 15:03:39 2017 +0530
Extract proxy object from abs operation in prefixedoutstream_impl.hpp
---
src/mlpack/core/util/prefixedoutstream_impl.hpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/mlpack/core/util/prefixedoutstream_impl.hpp b/src/mlpack/core/util/prefixedoutstream_impl.hpp
index 9ccf396..adf3477 100644
--- a/src/mlpack/core/util/prefixedoutstream_impl.hpp
+++ b/src/mlpack/core/util/prefixedoutstream_impl.hpp
@@ -166,7 +166,9 @@ PrefixedOutStream::BaseLogic(const T& val)
convert.precision(destination.precision());
// Set width of the convert stream
- double maxVal = arma::abs(printVal).max();
+ auto absVal = arma::abs(printVal).P.Q;
+ double maxVal = absVal.max();
+
if(maxVal == 0.f)
{
maxVal = 1;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mlpack.git
More information about the debian-science-commits
mailing list