Added cohomology/candidates counter to i/t/cohomology-persistence.hpp dev
authorDmitriy Morozov <dmitriy@mrzv.org>
Mon, 25 Jul 2011 23:21:29 -0700
branchdev
changeset 244 66235db8d8b7
parent 243 c9b8c98187a8
child 245 3a3dd22a98d9
child 246 88f7806633e0
Added cohomology/candidates counter to i/t/cohomology-persistence.hpp
include/topology/cohomology-persistence.hpp
--- a/include/topology/cohomology-persistence.hpp	Fri May 06 10:38:06 2011 -0700
+++ b/include/topology/cohomology-persistence.hpp	Mon Jul 25 23:21:29 2011 -0700
@@ -26,6 +26,7 @@
 static Counter*  cCohomologyAddComparison =             GetCounter("cohomology/add/comparison");
 static Counter*  cCohomologyElementCount =              GetCounter("cohomology/elements");
 static Counter*  cCohomologyCocycleCount =              GetCounter("cohomology/cocycles");
+static Counter*  cCohomologyCandidatesCount =           GetCounter("cohomology/candidates");
 #endif // COUNTERS
 
 template<class BirthInfo, class SimplexData, class Field>
@@ -83,6 +84,7 @@
     }
 
     candidates_bulk.sort(make_first_comparison(make_indirect_comparison(std::less<Cocycle>())));
+    CountBy(cCohomologyCandidatesCount, candidates_bulk.size());
     
 #if LOGGING    
     rLog(rlCohomology,  "  Candidates bulk");