Cosmetics, and added glp_free_env so that valgrind will not complain.
authorFrancois Fleuret <francois@fleuret.org>
Wed, 27 Mar 2013 15:56:42 +0000 (16:56 +0100)
committerFrancois Fleuret <francois@fleuret.org>
Wed, 27 Mar 2013 15:56:42 +0000 (16:56 +0100)
clueless-kmean.cc
clusterer.h

index 16f7691..13d9624 100644 (file)
@@ -109,4 +109,6 @@ int main(int argc, char **argv) {
   }
 
   delete[] associated_clusters;
+
+  glp_free_env(); // I do not want valgrind to complain
 }
index d1ff8be..f73d6c7 100644 (file)
 class Clusterer {
 public:
 
-  enum { STANDARD_ASSOCIATION, STANDARD_LP_ASSOCIATION, UNINFORMATIVE_LP_ASSOCIATION };
+  enum {
+    STANDARD_ASSOCIATION,
+    STANDARD_LP_ASSOCIATION,
+    UNINFORMATIVE_LP_ASSOCIATION
+  };
 
   const static int max_nb_iterations = 10;
   const static scalar_t min_iteration_improvement = 0.999;