[mlpack] 05/44: Backport r17189.

Barak A. Pearlmutter barak+git at pearlmutter.net
Mon Feb 15 19:35:52 UTC 2016


This is an automated email from the git hooks/post-receive script.

bap pushed a commit to tag mlpack-1.0.11
in repository mlpack.

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

    Backport r17189.
---
 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;
+
 };
 };
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mlpack.git



More information about the debian-science-commits mailing list