Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cocycles feature #23

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[CPP] Fix bad rebase
Signed-off-by: julian <monkeybreaker@protonmail.com>
MonkeyBreaker committed Aug 17, 2022
commit 38e9246dae0a12fa7a1a11b628523dae4bf634f4
14 changes: 8 additions & 6 deletions gph/src/ripser.h
Original file line number Diff line number Diff line change
@@ -1554,15 +1554,17 @@ class ripser
birth_edge.first, birth_edge.second,
death_edge.first, death_edge.second};
}
}

if (return_cocycles) {
// Representative cocycle
working_reduction_column.push(column_to_reduce);
cocycles_finite[new_idx_finite_bar] =
compute_cocycles(working_reduction_column, dim);
if (return_cocycles) {
// Representative cocycle
working_reduction_column.push(column_to_reduce);
cocycles_finite[new_idx_finite_bar] =
compute_cocycles(working_reduction_column,
dim);
}
}


break;
}
} else {