[mlpack] 15/149: Add explicit declarations of template function specializations for linker fixes on Visual Studio.

Barak A. Pearlmutter barak+git at pearlmutter.net
Sat May 2 09:11:04 UTC 2015


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

bap pushed a commit to branch svn-trunk
in repository mlpack.

commit f6795d2f8838a0459fd9a813e67827f0623d9c34
Author: rcurtin <rcurtin at 9d5b8971-822b-0410-80eb-d18c1038ef23>
Date:   Wed Sep 24 19:49:54 2014 +0000

    Add explicit declarations of template function specializations for linker fixes
    on Visual Studio.
    
    
    git-svn-id: http://svn.cc.gatech.edu/fastlab/mlpack/trunk@17189 9d5b8971-822b-0410-80eb-d18c1038ef23
---
 src/mlpack/core/optimizers/lrsdp/lrsdp_function.hpp | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/mlpack/core/optimizers/lrsdp/lrsdp_function.hpp b/src/mlpack/core/optimizers/lrsdp/lrsdp_function.hpp
index 19089ad..9554899 100644
--- a/src/mlpack/core/optimizers/lrsdp/lrsdp_function.hpp
+++ b/src/mlpack/core/optimizers/lrsdp/lrsdp_function.hpp
@@ -96,6 +96,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