[mlpack-git] mlpack-1.0.x: Backport r17189. (086c1d1)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Thu Mar 5 22:06:40 EST 2015


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

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

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

commit 086c1d1470a603e2d0089b4018457d1bec648d67
Author: Ryan Curtin <ryan at ratml.org>
Date:   Sun Dec 7 19:14:35 2014 +0000

    Backport r17189.


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

086c1d1470a603e2d0089b4018457d1bec648d67
 HISTORY.txt                                         |  2 ++
 src/mlpack/core/optimizers/lrsdp/lrsdp_function.hpp | 10 ++++++++++
 2 files changed, 12 insertions(+)

diff --git a/HISTORY.txt b/HISTORY.txt
index 5895e74..4e58de7 100644
--- a/HISTORY.txt
+++ b/HISTORY.txt
@@ -4,6 +4,8 @@
 
   * Load parameter vectors properly for LinearRegression models.
 
+  * Linker fixes for AugLagrangian specializations under Visual Studio.
+
 2014-08-29    mlpack 1.0.10
 
   * Bugfix for NeighborSearch regression which caused very slow allknn/allkfn.
diff --git a/src/mlpack/core/optimizers/lrsdp/lrsdp_function.hpp b/src/mlpack/core/optimizers/lrsdp/lrsdp_function.hpp
index 948172d..b303ba7 100644
--- a/src/mlpack/core/optimizers/lrsdp/lrsdp_function.hpp
+++ b/src/mlpack/core/optimizers/lrsdp/lrsdp_function.hpp
@@ -111,6 +111,16 @@ class LRSDPFunction
   arma::uvec aModes;
 };
 
+// Declare specializations in lrsdp_function.cpp.
+template<>
+double AugLagrangianFunction<LRSDPFunction>::Evaluate(
+    const arma::mat& coordinates) const;
+
+template<>
+void AugLagrangianFunction<LRSDPFunction>::Gradient(
+    const arma::mat& coordinates,
+    arma::mat& gradient) const;
+
 };
 };
 



More information about the mlpack-git mailing list