The Original CHomP Software
|
Functions | |
template<class tCube , class tVerify > | |
int_t | cubreducequiet (const hashedset< tCube > &maincset, hashedset< tCube > &cset, hashedset< tCube > &other, const hashedset< tCube > &keep, const tVerify &verify, bool quiet=true) |
Reduces a pair of sets of cubes for relative homology computation. More... | |
template<class tCube , class tVerify > | |
int_t | cubexpand (hashedset< tCube > &cset, hashedset< tCube > &other, const tVerify &verify, bool quiet=false) |
Expands the set 'other' towards 'cset' without changing the homology of (cset + other, other). More... | |
int_t chomp::homology::reduction0::cubexpand | ( | hashedset< tCube > & | cset, |
hashedset< tCube > & | other, | ||
const tVerify & | verify, | ||
bool | quiet = false |
||
) |
Expands the set 'other' towards 'cset' without changing the homology of (cset + other, other).
The two sets must be disjoint. Use an externally defined additional criterion for the verification if the cubes that look good for removal are actually allowed to be removed.
Definition at line 239 of file cubired0.h.
References chomp::homology::acyclic(), chomp::homology::getmaxneighbors(), chomp::homology::scon, and chomp::homology::sseq.
int_t chomp::homology::reduction0::cubreducequiet | ( | const hashedset< tCube > & | maincset, |
hashedset< tCube > & | cset, | ||
hashedset< tCube > & | other, | ||
const hashedset< tCube > & | keep, | ||
const tVerify & | verify, | ||
bool | quiet = true |
||
) |
Reduces a pair of sets of cubes for relative homology computation.
The pair is (maincset + cset + other, other), where the cubes in maincset are not to be removed (this is like the "core" of the pair that should be fixed),, the cubes in cset and other are to be considered for removal and could be removed if this is found feasible. The sets maincset + cset and other are disjoint. Does not remove any cubes that are listed in the set keep. Does additional verification, e.g., makes sure that the acyclicity of the given map is preserved. If 'quiet' is set to true then suppresses any messages. Returns the number of cubes removed from both sets.
Definition at line 84 of file cubired0.h.
References chomp::homology::acyclic(), chomp::homology::acyclic_rel(), chomp::homology::getmaxneighbors(), chomp::homology::makesetunion(), chomp::homology::scon, and chomp::homology::sseq.