[opengm] 273/386: Add RebindGM to LPCplex2 so that it can be used for structured learning

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Aug 31 08:38:09 UTC 2016


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

ghisvail-guest pushed a commit to branch debian/master
in repository opengm.

commit 043e99a3766e4dd2e0af30e9f45dec7ef6cd47df
Author: Carsten Haubold <carstenhaubold at googlemail.com>
Date:   Fri Sep 18 16:19:45 2015 +0200

    Add RebindGM to LPCplex2 so that it can be used for structured learning
---
 include/opengm/inference/lpcplex2.hxx | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/include/opengm/inference/lpcplex2.hxx b/include/opengm/inference/lpcplex2.hxx
index 8769055..b2a5d20 100644
--- a/include/opengm/inference/lpcplex2.hxx
+++ b/include/opengm/inference/lpcplex2.hxx
@@ -25,6 +25,16 @@ public:
 
    // public member functions
    virtual std::string name() const;
+
+   template<class _GM>
+   struct RebindGm{
+       typedef LPCplex2<_GM, ACC_TYPE> type;
+   };
+
+   template<class _GM,class _ACC>
+   struct RebindGmAndAcc{
+       typedef LPCplex2<_GM, _ACC > type;
+   };
 };
 
 template<class GM_TYPE, class ACC_TYPE>

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



More information about the debian-science-commits mailing list