From ca6d045155d4c948063f49b6de8c35c0e3246e7a Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Wed, 27 Mar 2013 16:56:42 +0100 Subject: [PATCH] Cosmetics, and added glp_free_env so that valgrind will not complain. --- clueless-kmean.cc | 2 ++ clusterer.h | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) 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; -- 2.39.5