[mlpack-svn] r11412 - in mlpack/trunk/src/mlpack/core/optimizers: aug_lagrangian lrsdp
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Mon Feb 6 16:16:08 EST 2012
Author: rcurtin
Date: 2012-02-06 16:16:08 -0500 (Mon, 06 Feb 2012)
New Revision: 11412
Modified:
mlpack/trunk/src/mlpack/core/optimizers/aug_lagrangian/aug_lagrangian_test_functions.cpp
mlpack/trunk/src/mlpack/core/optimizers/lrsdp/lrsdp_impl.hpp
Log:
Fix a few warnings for unused variables that I introduced.
Modified: mlpack/trunk/src/mlpack/core/optimizers/aug_lagrangian/aug_lagrangian_test_functions.cpp
===================================================================
--- mlpack/trunk/src/mlpack/core/optimizers/aug_lagrangian/aug_lagrangian_test_functions.cpp 2012-02-06 20:57:39 UTC (rev 11411)
+++ mlpack/trunk/src/mlpack/core/optimizers/aug_lagrangian/aug_lagrangian_test_functions.cpp 2012-02-06 21:16:08 UTC (rev 11412)
@@ -57,7 +57,7 @@
}
void AugLagrangianTestFunction::GradientConstraint(const size_t index,
- const arma::mat& coordinates,
+ const arma::mat& /* coordinates */,
arma::mat& gradient)
{
// If the user passed an invalid index (not 0), we will return a zero
Modified: mlpack/trunk/src/mlpack/core/optimizers/lrsdp/lrsdp_impl.hpp
===================================================================
--- mlpack/trunk/src/mlpack/core/optimizers/lrsdp/lrsdp_impl.hpp 2012-02-06 20:57:39 UTC (rev 11411)
+++ mlpack/trunk/src/mlpack/core/optimizers/lrsdp/lrsdp_impl.hpp 2012-02-06 21:16:08 UTC (rev 11412)
@@ -32,7 +32,8 @@
return -accu(coordinates * trans(coordinates));
}
-void LRSDP::Gradient(const arma::mat& coordinates, arma::mat& gradient) const
+void LRSDP::Gradient(const arma::mat& /*coordinates*/,
+ arma::mat& /*gradient*/) const
{
Log::Fatal << "LRSDP::Gradient() called! Uh-oh..." << std::endl;
}
@@ -43,9 +44,9 @@
return trace(a[index] * (coordinates * trans(coordinates))) - b[index];
}
-void LRSDP::GradientConstraint(const size_t index,
- const arma::mat& coordinates,
- arma::mat& gradient) const
+void LRSDP::GradientConstraint(const size_t /*index*/,
+ const arma::mat& /*coordinates*/,
+ arma::mat& /*gradient*/) const
{
Log::Fatal << "LRSDP::GradientConstraint() called! Uh-oh..." << std::endl;
}
More information about the mlpack-svn
mailing list