From bd64593698d032e7518eb3ee3c3a3b1a0193f66d Mon Sep 17 00:00:00 2001 From: Ulrich Bauer Date: Wed, 21 Sep 2016 09:24:06 +0200 Subject: fixed license header --- ripser.cpp | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/ripser.cpp b/ripser.cpp index 93bd10e..3d4eb29 100644 --- a/ripser.cpp +++ b/ripser.cpp @@ -1,19 +1,23 @@ -/* Ripser: a lean C++ code for the computation of Vietoris-Rips persistence barcodes +/* - Copyright 2015-2016 Ulrich Bauer. +Ripser: a lean C++ code for computation of Vietoris-Rips persistence barcodes - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. +Copyright 2015-2016 Ulrich Bauer. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. +This program is free software: you can redistribute it and/or modify it under +the terms of the GNU Lesser General Public License as published by the +Free Software Foundation, either version 3 of the License, or (at your option) +any later version. + +This program is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A +PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public License along +with this program. If not, see . + +*/ - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ //#define ASSEMBLE_REDUCTION_MATRIX //#define USE_COEFFICIENTS -- cgit v1.2.3 From 1912b703496607999c3ce09ef24e680304a6a093 Mon Sep 17 00:00:00 2001 From: Ulrich Bauer Date: Thu, 29 Sep 2016 15:32:19 +0200 Subject: suppress output of 0-persistence pairs in dim 0 --- ripser.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ripser.cpp b/ripser.cpp index 3d4eb29..41600b8 100644 --- a/ripser.cpp +++ b/ripser.cpp @@ -926,7 +926,8 @@ int main(int argc, char** argv) { if (u != v) { #ifdef PRINT_PERSISTENCE_PAIRS - std::cout << " [0," << get_diameter(e) << ")" << std::endl; + if (get_diameter(e) > 0) + std::cout << " [0," << get_diameter(e) << ")" << std::endl; #endif dset.link(u, v); } else @@ -954,4 +955,4 @@ int main(int argc, char** argv) { assemble_columns_to_reduce(columns_to_reduce, pivot_column_index, comp, dim, n, threshold, binomial_coeff); } } -} \ No newline at end of file +} -- cgit v1.2.3