diff options
author | Arnur Nigmetov <anigmetov@lbl.gov> | 2021-05-07 22:38:27 -0700 |
---|---|---|
committer | Arnur Nigmetov <anigmetov@lbl.gov> | 2021-05-07 22:40:37 -0700 |
commit | 2ed9afc052bee7956f6abb195947de1f80cb9d91 (patch) | |
tree | 15211941e0b14ffa2b80ce4de5b66bf89068ac20 /matching/include/persistence_module.hpp | |
parent | b528c4067a8aac346eb307d3c23b82d5953cfe2d (diff) |
Fix bugs in matching distance for modules.
1. Twist reduction should not be used for modules, clearing makes no
sense and creates erroneous points. Just use standard reduction.
2. Infinite points for modules (gens/relations case) are treated
slightly differently.
Diffstat (limited to 'matching/include/persistence_module.hpp')
-rw-r--r-- | matching/include/persistence_module.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/matching/include/persistence_module.hpp b/matching/include/persistence_module.hpp index 7479e02..022b43d 100644 --- a/matching/include/persistence_module.hpp +++ b/matching/include/persistence_module.hpp @@ -158,7 +158,7 @@ namespace md { get_slice_projection_matrix(slice, phat_matrix, gen_projections, rel_projections); phat::persistence_pairs phat_persistence_pairs; - phat::compute_persistence_pairs<phat::twist_reduction>(phat_persistence_pairs, phat_matrix); + phat::compute_persistence_pairs<phat::standard_reduction>(phat_persistence_pairs, phat_matrix, true); Diagram<Real> dgm; |