summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorulrich.bauer@gmail.com <ulrich.bauer@gmail.com@8e3bb3c2-eed4-f18f-5264-0b6c94e6926d>2013-04-30 09:19:22 +0000
committerulrich.bauer@gmail.com <ulrich.bauer@gmail.com@8e3bb3c2-eed4-f18f-5264-0b6c94e6926d>2013-04-30 09:19:22 +0000
commit204f8ace0554cb8290a7f8cfca947d4a1251f985 (patch)
treef49575e1fc8fdf9a161d7ccec0c67703c0615965 /include
parentcd068718368ef7e2e45e7382b45f61a6f2ef680a (diff)
alpha shape creation update
git-svn-id: https://phat.googlecode.com/svn/trunk@50 8e3bb3c2-eed4-f18f-5264-0b6c94e6926d
Diffstat (limited to 'include')
-rw-r--r--include/phat/compute_persistence_pairs.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/phat/compute_persistence_pairs.h b/include/phat/compute_persistence_pairs.h
index e782bd7..ca46ac0 100644
--- a/include/phat/compute_persistence_pairs.h
+++ b/include/phat/compute_persistence_pairs.h
@@ -43,8 +43,24 @@ namespace phat {
void compute_persistence_pairs_dualized( persistence_pairs& pairs, boundary_matrix< Representation >& boundary_matrix ) {
ReductionAlgorithm reduce;
const index nr_columns = boundary_matrix.get_num_cols();
+
+ double start;
+
+ start= omp_get_wtime();
+ std::clog << "Dualize ... " << std::endl;
+
dualize( boundary_matrix );
+
+ std::clog << omp_get_wtime() - start <<"s" << std::endl;
+
+ start= omp_get_wtime();
+ std::clog << "Reduce ... " << std::endl;
+
reduce( boundary_matrix );
+
+ std::clog << omp_get_wtime() - start <<"s" << std::endl;
+
+
pairs.clear();
for( index idx = 0; idx < nr_columns; idx++ ) {
if( !boundary_matrix.is_empty( idx ) ) {