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

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Mon Aug 6 16:37:28 EDT 2012


Author: rcurtin
Date: 2012-08-06 16:37:28 -0400 (Mon, 06 Aug 2012)
New Revision: 13349

Modified:
   mlpack/trunk/src/mlpack/core/math/range.hpp
Log:
Speedups for math::Range().


Modified: mlpack/trunk/src/mlpack/core/math/range.hpp
===================================================================
--- mlpack/trunk/src/mlpack/core/math/range.hpp	2012-08-06 20:37:01 UTC (rev 13348)
+++ mlpack/trunk/src/mlpack/core/math/range.hpp	2012-08-06 20:37:28 UTC (rev 13349)
@@ -40,12 +40,12 @@
   inline Range(const double lo, const double hi);
 
   //! Get the lower bound.
-  inline const double& Lo() const { return lo; }
+  inline double Lo() const { return lo; }
   //! Modify the lower bound.
   inline double& Lo() { return lo; }
 
   //! Get the upper bound.
-  inline const double& Hi() const { return hi; }
+  inline double Hi() const { return hi; }
   //! Modify the upper bound.
   inline double& Hi() { return hi; }
 




More information about the mlpack-svn mailing list