[mlpack] 137/207: Tiny pedantic style changes.

Barak A. Pearlmutter barak+git at pearlmutter.net
Thu Mar 23 17:53:48 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 6fe8a3b70b618b59a53cebea3f52cc35ae0fd525
Author: Ryan Curtin <ryan at ratml.org>
Date:   Tue Mar 14 10:54:47 2017 -0400

    Tiny pedantic style changes.
---
 src/mlpack/core/util/prefixedoutstream_impl.hpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/mlpack/core/util/prefixedoutstream_impl.hpp b/src/mlpack/core/util/prefixedoutstream_impl.hpp
index 4772a7e..7a6cb76 100644
--- a/src/mlpack/core/util/prefixedoutstream_impl.hpp
+++ b/src/mlpack/core/util/prefixedoutstream_impl.hpp
@@ -143,7 +143,7 @@ typename std::enable_if<arma::is_arma_type<T>::value>::type
 PrefixedOutStream::BaseLogic(const T& val)
 {
   // Extract printable object from the input.
-  const arma::Mat<typename T::elem_type> &printVal(val);
+  const arma::Mat<typename T::elem_type>& printVal(val);
 
   // We will use this to track whether or not we need to terminate at the end of
   // this call (only for streams which terminate after a newline).
@@ -167,8 +167,8 @@ PrefixedOutStream::BaseLogic(const T& val)
     convert.setf(destination.flags());
     convert.precision(destination.precision());
 
-    // Set width of the convert stream
-    const arma::Mat<typename T::elem_type> &absVal(arma::abs(printVal));
+    // Set width of the convert stream.
+    const arma::Mat<typename T::elem_type>& absVal(arma::abs(printVal));
     double maxVal = absVal.max();
 
     if (maxVal == 0.0)

-- 
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