[opengm] 277/386: Add LpGurobi2::RebindGm to allow learning with Gurobi solver

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Aug 31 08:38:10 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 6f4c40805d007c8b336c29cdaa001f9a98be4884
Author: Carsten Haubold <carstenhaubold at googlemail.com>
Date:   Fri Sep 25 21:03:21 2015 +0200

    Add LpGurobi2::RebindGm to allow learning with Gurobi solver
---
 include/opengm/inference/lpgurobi2.hxx | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/include/opengm/inference/lpgurobi2.hxx b/include/opengm/inference/lpgurobi2.hxx
index a9c1a9c..192b038 100644
--- a/include/opengm/inference/lpgurobi2.hxx
+++ b/include/opengm/inference/lpgurobi2.hxx
@@ -25,6 +25,16 @@ public:
 
    // public member functions
    virtual std::string name() const;
+
+   template<class _GM>
+   struct RebindGm{
+       typedef LPGurobi2<_GM, ACC_TYPE> type;
+   };
+
+   template<class _GM,class _ACC>
+   struct RebindGmAndAcc{
+       typedef LPGurobi2<_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