summaryrefslogtreecommitdiff
path: root/include/phat/persistence_pairs.h
diff options
context:
space:
mode:
authorulrich.bauer@gmail.com <ulrich.bauer@gmail.com@8e3bb3c2-eed4-f18f-5264-0b6c94e6926d>2013-05-16 15:34:15 +0000
committerulrich.bauer@gmail.com <ulrich.bauer@gmail.com@8e3bb3c2-eed4-f18f-5264-0b6c94e6926d>2013-05-16 15:34:15 +0000
commit8fa5020a3710161bb0ddfda1b9003a369b3b2174 (patch)
treeec2f33b938304aa3809e3a5aba6e8d488d7501b0 /include/phat/persistence_pairs.h
parent772d0888efe11e12c6849e44bdda5c0cf58d39ee (diff)
dualization timing in phat binary, explicit function for dualizing persistence pairs
git-svn-id: https://phat.googlecode.com/svn/trunk@87 8e3bb3c2-eed4-f18f-5264-0b6c94e6926d
Diffstat (limited to 'include/phat/persistence_pairs.h')
-rw-r--r--include/phat/persistence_pairs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/phat/persistence_pairs.h b/include/phat/persistence_pairs.h
index b808a28..eafc638 100644
--- a/include/phat/persistence_pairs.h
+++ b/include/phat/persistence_pairs.h
@@ -39,6 +39,10 @@ namespace phat {
return pairs[ idx ];
}
+ void set_pair( index idx, index birth, index death ) {
+ pairs[ idx ] = std::make_pair( birth, death );
+ }
+
void clear() {
pairs.clear();
}