[mlpack-svn] r10473 - mlpack/trunk/src/mlpack/methods/nca
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Wed Nov 30 15:42:49 EST 2011
Author: rcurtin
Date: 2011-11-30 15:42:49 -0500 (Wed, 30 Nov 2011)
New Revision: 10473
Modified:
mlpack/trunk/src/mlpack/methods/nca/nca_softmax_error_function.hpp
mlpack/trunk/src/mlpack/methods/nca/nca_softmax_error_function_impl.hpp
Log:
Fix const-correctness of GetInitialPoint().
Modified: mlpack/trunk/src/mlpack/methods/nca/nca_softmax_error_function.hpp
===================================================================
--- mlpack/trunk/src/mlpack/methods/nca/nca_softmax_error_function.hpp 2011-11-30 20:42:29 UTC (rev 10472)
+++ mlpack/trunk/src/mlpack/methods/nca/nca_softmax_error_function.hpp 2011-11-30 20:42:49 UTC (rev 10473)
@@ -65,7 +65,7 @@
/**
* Get the initial point.
*/
- arma::mat GetInitialPoint();
+ const arma::mat GetInitialPoint() const;
private:
const arma::mat& dataset_;
Modified: mlpack/trunk/src/mlpack/methods/nca/nca_softmax_error_function_impl.hpp
===================================================================
--- mlpack/trunk/src/mlpack/methods/nca/nca_softmax_error_function_impl.hpp 2011-11-30 20:42:29 UTC (rev 10472)
+++ mlpack/trunk/src/mlpack/methods/nca/nca_softmax_error_function_impl.hpp 2011-11-30 20:42:49 UTC (rev 10473)
@@ -81,7 +81,7 @@
}
template<typename Kernel>
-arma::mat SoftmaxErrorFunction<Kernel>::GetInitialPoint()
+const arma::mat SoftmaxErrorFunction<Kernel>::GetInitialPoint() const
{
return arma::eye<arma::mat>(dataset_.n_rows, dataset_.n_rows);
}
More information about the mlpack-svn
mailing list