summaryrefslogtreecommitdiff
path: root/src/Persistent_cohomology
diff options
context:
space:
mode:
authorMarc Glisse <marc.glisse@inria.fr>2021-07-24 17:08:03 +0200
committerGitHub <noreply@github.com>2021-07-24 17:08:03 +0200
commitf78e5e3c6df6f7e6e899d5846fff785a4ed3313c (patch)
tree4d8eaaf5a445bdcf22bbd0402521f12f3ad47a22 /src/Persistent_cohomology
parent5fb7e6a9b5230c1bd825912f4d3ac46d13730cc4 (diff)
Avoid v[0] for persistence of empty complex
It was reported by some debug mode while I was working on something else
Diffstat (limited to 'src/Persistent_cohomology')
-rw-r--r--src/Persistent_cohomology/include/gudhi/Persistent_cohomology.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Persistent_cohomology/include/gudhi/Persistent_cohomology.h b/src/Persistent_cohomology/include/gudhi/Persistent_cohomology.h
index d34ee07d..d428e497 100644
--- a/src/Persistent_cohomology/include/gudhi/Persistent_cohomology.h
+++ b/src/Persistent_cohomology/include/gudhi/Persistent_cohomology.h
@@ -100,7 +100,7 @@ class Persistent_cohomology {
ds_rank_(num_simplices_), // union-find
ds_parent_(num_simplices_), // union-find
ds_repr_(num_simplices_, NULL), // union-find -> annotation vectors
- dsets_(&ds_rank_[0], &ds_parent_[0]), // union-find
+ dsets_(ds_rank_.data(), ds_parent_.data()), // union-find
cam_(), // collection of annotation vectors
zero_cocycles_(), // union-find -> Simplex_key of creator for 0-homology
transverse_idx_(), // key -> row