[opengm] 204/386: fixed minor bugs in examples

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Aug 31 08:37:42 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 39a53e3e5383a3ea344049b7db7fa10f3e59f3af
Author: DerThorsten <thorsten.beier at iwr.uni-heidelberg.de>
Date:   Wed Jan 7 10:50:06 2015 +0100

    fixed minor bugs in examples
---
 include/opengm/functions/learnable/lunary.hxx | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/include/opengm/functions/learnable/lunary.hxx b/include/opengm/functions/learnable/lunary.hxx
index ded00c2..8eaa45f 100644
--- a/include/opengm/functions/learnable/lunary.hxx
+++ b/include/opengm/functions/learnable/lunary.hxx
@@ -38,9 +38,19 @@ public:
     typedef L LabelType;
     typedef I IndexType;
 
+    LUnary()
+    :  
+    weights_(NULL),
+    numberOfLabels_(0), 
+    offsets_(),
+    weightIds_(),
+    features_()
+    {
+
+    }
 
     LUnary(
-        const opengm::learning::Weights<T>&     weights,
+        const opengm::learning::Weights<T>&     weights 
         std::vector<FeaturesAndIndices<T, I> >  featuresAndIndicesPerLabel
     );
 
@@ -182,8 +192,8 @@ template <class T, class I, class L>
 inline
 LUnary<T, I, L>::LUnary
 ( 
-   const opengm::learning::Weights<T> & weights =  opengm::learning::Weights<T>(),
-   std::vector<FeaturesAndIndices<V, I> >  featuresAndIndicesPerLabel = std::vector<FeaturesAndIndices<V, I> >()
+   const opengm::learning::Weights<T> & weights 
+   std::vector<FeaturesAndIndices<V, I> >  featuresAndIndicesPerLabel 
 )
 :  
 weights_(&weights),

-- 
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