[mlpack-svn] r14038 - mlpack/trunk/src/mlpack/core/math

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Fri Dec 21 12:00:52 EST 2012


Author: trironk3
Date: 2012-12-21 12:00:51 -0500 (Fri, 21 Dec 2012)
New Revision: 14038

Modified:
   mlpack/trunk/src/mlpack/core/math/range_impl.hpp
Log:
Abbreviated the Range ToString method to return one line.

Modified: mlpack/trunk/src/mlpack/core/math/range_impl.hpp
===================================================================
--- mlpack/trunk/src/mlpack/core/math/range_impl.hpp	2012-12-21 16:59:52 UTC (rev 14037)
+++ mlpack/trunk/src/mlpack/core/math/range_impl.hpp	2012-12-21 17:00:51 UTC (rev 14038)
@@ -179,12 +179,8 @@
 std::string Range::ToString() const
 {
   std::ostringstream convert;
-  convert << "Range [" << this << "]" << std::endl;
-  convert << "Low:  " << lo << std::endl;
-  convert << "High: " << hi;
-  
-  std::string result = convert.str();
-  return result;   
+  convert << "[" << lo << ", " << hi << "]";
+  return convert.str();
 }
 
 }; // namesapce math




More information about the mlpack-svn mailing list