[mlpack-git] master, mlpack-1.0.x: Remove unnecessary newlines from after mean and covariance output. (7b9ff48)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Thu Mar 5 21:42:54 EST 2015


Repository : https://github.com/mlpack/mlpack

On branches: master,mlpack-1.0.x
Link       : https://github.com/mlpack/mlpack/compare/904762495c039e345beba14c1142fd719b3bd50e...f94823c800ad6f7266995c700b1b630d5ffdcf40

>---------------------------------------------------------------

commit 7b9ff485780da84d294283ddf00ba10ceb04abc4
Author: Ryan Curtin <ryan at ratml.org>
Date:   Mon Feb 10 13:51:09 2014 +0000

    Remove unnecessary newlines from after mean and covariance output.


>---------------------------------------------------------------

7b9ff485780da84d294283ddf00ba10ceb04abc4
 src/mlpack/core/dists/gaussian_distribution.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mlpack/core/dists/gaussian_distribution.cpp b/src/mlpack/core/dists/gaussian_distribution.cpp
index 8e43cf2..7c8f14e 100644
--- a/src/mlpack/core/dists/gaussian_distribution.cpp
+++ b/src/mlpack/core/dists/gaussian_distribution.cpp
@@ -143,8 +143,8 @@ std::string GaussianDistribution::ToString() const
 
   // Secondary ostringstream so things can be indented right.
   std::ostringstream data;
-  data << "Mean: " << std::endl << mean << std::endl;
-  data << "Covariance: " << std::endl << covariance << std::endl;
+  data << "Mean: " << std::endl << mean;
+  data << "Covariance: " << std::endl << covariance;
 
   convert << util::Indent(data.str());
   return convert.str();



More information about the mlpack-git mailing list