From: Francois Fleuret Date: Wed, 27 Mar 2013 15:56:42 +0000 (+0100) Subject: Cosmetics, and added glp_free_env so that valgrind will not complain. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=ca6d045155d4c948063f49b6de8c35c0e3246e7a;p=clueless-kmeans.git Cosmetics, and added glp_free_env so that valgrind will not complain. --- diff --git a/clueless-kmean.cc b/clueless-kmean.cc index 16f7691..13d9624 100644 --- a/clueless-kmean.cc +++ b/clueless-kmean.cc @@ -109,4 +109,6 @@ int main(int argc, char **argv) { } delete[] associated_clusters; + + glp_free_env(); // I do not want valgrind to complain } diff --git a/clusterer.h b/clusterer.h index d1ff8be..f73d6c7 100644 --- a/clusterer.h +++ b/clusterer.h @@ -30,7 +30,11 @@ 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;