summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVincent Rouvreau <10407034+VincentRouvreau@users.noreply.github.com>2021-08-12 16:33:52 +0200
committerGitHub <noreply@github.com>2021-08-12 16:33:52 +0200
commit709de343cfdedcb7b92f8b5f8f45234aa6013660 (patch)
treef8d30f8e54d8f9029df06e1274912f13803e19c5 /src
parentc7a25877fd77669516f7a223a068fc2728f897a2 (diff)
parentf78e5e3c6df6f7e6e899d5846fff785a4ed3313c (diff)
Merge pull request #514 from GUDHI/mglisse-patch-2
Avoid v[0] for persistence of empty complex
Diffstat (limited to 'src')
-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