3static bool isPrime(
int n) {
6 for(
int d = 2; d * d <= n; ++d) {
21 bool forceRipser =
false;
25 if(points[0].size() == 2) {
26 rpd::FastRipsPersistenceDiagram2 FRPD(points);
28 FRPD.computeRips0And1Persistence(ph,
false,
false);
30 printWrn(
"Geometric method only implemented for dim 2.");
31 printWrn(
"Ripser will be used instead.");
35 printWrn(
"TTK was not compiled with CGAL.");
36 printWrn(
"Ripser will be used instead.");
int printWrn(const std::string &msg, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cerr) const
void setDebugMsgPrefix(const std::string &prefix)
int printErr(const std::string &msg, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cerr) const
bool InputIsDistanceMatrix
int HomologyMaximumDimension
int execute(const rpd::PointCloud &points, rpd::MultidimensionalDiagram &ph) const
Main entry point.
double SimplexMaximumDiameter
void ripser(std::vector< std::vector< value_t > > points, PersistenceType &ph, value_t threshold, index_t dim_max, bool distanceMatrix, bool criticalEdgesOnly=true, bool infinitePairs=true, coefficient_t modulus=2)
std::vector< std::vector< value_t > > PointCloud
std::vector< Diagram > MultidimensionalDiagram