The Original CHomP Software
|
An algebraic structure that represents a finitely generated Abelian group with gradation. More...
#include <algstruct.h>
Public Member Functions | |
algstruct () | |
The default constructor. More... | |
~algstruct () | |
The destructor. More... | |
int | countLevels () const |
Returns the number of levels of gradation stored in the structure. More... | |
void | setBetti (int level, int number) |
Sets a specific Betti number. More... | |
void | addBetti (int level, int howmuch) |
Increases a specific Betti number. More... | |
int | getBetti (int level) const |
Returns a specific Betti number. More... | |
void | addTorsion (int level, euclidom coef) |
Adds a torsion coefficient. More... | |
const euclidom & | getTorsion (int level, int n) const |
Returns a torsion coefficient. More... | |
int | countTorsion (int level) const |
Says how many torsion coefficients exist at the given level. More... | |
std::ostream & | describe (std::ostream &out) const |
Describes the homology group in a human-readable way. More... | |
std::ostream & | showBetti (std::ostream &out) const |
Shows the Betti numbers as a space-sperated sequence. More... | |
Private Attributes | |
std::vector< int > | betti |
The Betti numbers. More... | |
std::vector< std::vector< euclidom > > | torsion |
The torsion coefficients. More... | |
An algebraic structure that represents a finitely generated Abelian group with gradation.
Definition at line 67 of file algstruct.h.
|
inline |
The default constructor.
Definition at line 115 of file algstruct.h.
|
inline |
The destructor.
Definition at line 121 of file algstruct.h.
|
inline |
Increases a specific Betti number.
Definition at line 153 of file algstruct.h.
|
inline |
Adds a torsion coefficient.
Definition at line 176 of file algstruct.h.
|
inline |
Returns the number of levels of gradation stored in the structure.
Definition at line 129 of file algstruct.h.
|
inline |
Says how many torsion coefficients exist at the given level.
Definition at line 203 of file algstruct.h.
std::ostream & chomp::homengin::algstruct< euclidom >::describe | ( | std::ostream & | out | ) | const |
Describes the homology group in a human-readable way.
Definition at line 228 of file algstruct.h.
|
inline |
Returns a specific Betti number.
Definition at line 165 of file algstruct.h.
|
inline |
Returns a torsion coefficient.
Definition at line 188 of file algstruct.h.
|
inline |
Sets a specific Betti number.
Definition at line 137 of file algstruct.h.
std::ostream & chomp::homengin::algstruct< euclidom >::showBetti | ( | std::ostream & | out | ) | const |
Shows the Betti numbers as a space-sperated sequence.
Definition at line 271 of file algstruct.h.
|
private |
The Betti numbers.
Definition at line 106 of file algstruct.h.
|
private |
The torsion coefficients.
Definition at line 109 of file algstruct.h.