[mlpack-git] mlpack-1.0.x: Backport r17189. (8c036ca)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Wed Jan 7 11:58:19 EST 2015
Repository : https://github.com/mlpack/mlpack
On branch : mlpack-1.0.x
Link : https://github.com/mlpack/mlpack/compare/0000000000000000000000000000000000000000...904762495c039e345beba14c1142fd719b3bd50e
>---------------------------------------------------------------
commit 8c036ca8eee65ae0fdd152d06d137ea9e9822b82
Author: Ryan Curtin <ryan at ratml.org>
Date: Sun Dec 7 19:14:35 2014 +0000
Backport r17189.
>---------------------------------------------------------------
8c036ca8eee65ae0fdd152d06d137ea9e9822b82
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