The Conley-Morse Graphs Software
|
The class that computes and returns properties of the Conley index. More...
#include <conindex.h>
Public Member Functions | |
ConleyIndex (const IndexPair *c=0) | |
The default constructor. More... | |
ConleyIndex (const ConleyIndex< IndexPair, euclidom > &c) | |
The copy constructor. More... | |
~ConleyIndex () | |
The destructor. More... | |
ConleyIndex< IndexPair, euclidom > & | operator= (const ConleyIndex< IndexPair, euclidom > &c) |
The assignment operator. More... | |
void | setIndexPair (const IndexPair *f) |
Sets the index pair to be used to compute the Conley index. More... | |
int | compute (bool twolayer=false) |
Computes the Conley index. More... | |
int | reduce (bool shrink=true) |
Reduces the index map using some shift equivalences to certain extent. More... | |
void | truncate (int newlevel) |
Truncates the Conley index to the new top level. More... | |
int | eigenvalues (int level, std::vector< double > &Re, std::vector< double > &Im, bool nonzero=true, bool sorted=true) const |
Computes the eigenvalues of the index map. More... | |
bool | trivial () const |
Verifies if the index is trivial. More... | |
int | BettiNumber (int n) const |
Retrieves the nth Betti number. More... | |
euclidom | Coefficient (int n, int i) const |
Retrieves the 'i'th [torsion] coefficient at the nth level. More... | |
int | dim () const |
Retrieves the top level, or the maximal dimension of the index. More... | |
const chomp::homology::mmatrix< euclidom > * | Map (int n) const |
Retrieves the matrix of the index map at the given level. More... | |
std::string | MapString (int n, const char *newline="\n") const |
Retrieves a human-readable text representation of the map. More... | |
std::string | EigenString (int n) const |
Retrieves a human-readable text showing the eigenvalues. More... | |
std::string | HomString () const |
Retrieves a human-readable text representation of the homology. More... | |
void | define (const int *betti, const chomp::homology::mmatrix< euclidom > *matr, int _toplevel) |
Defines the Conley index by the given Betti numbers and the given maps in homology. More... | |
void | define (const int *betti, int _toplevel) |
Defines the Conley index by the given Betti numbers and adds the identity map. More... | |
Static Private Member Functions | |
static double | round (double x, double epsilon, double threshold) |
Rounds a real number to the given precision. More... | |
Private Attributes | |
const IndexPair * | cf |
An object that feeds this class with cubes. More... | |
int | toplevel |
The number of the top homology level. More... | |
std::vector< std::vector< euclidom > > | coef |
The torsion coefficients of the corresponding homology generators. More... | |
chomp::homology::mmatrix< euclidom > * | indmap |
The matrices of the index map at each level. More... | |
int | nontrivialindex |
Variable that stores the tabulated information on whether the index is nontrivial. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &out, const ConleyIndex< IndexPair, euclidom > &c) |
Converts the Conley index to a string (without the index pair). More... | |
std::istream & | operator>> (std::istream &in, ConleyIndex< IndexPair, euclidom > &c) |
Retrieves the Conley index from a string (without the index pair). More... | |
The class that computes and returns properties of the Conley index.
The index pair object is used to get the cubical index pair.
Definition at line 85 of file conindex.h.
|
inline |
The default constructor.
Definition at line 221 of file conindex.h.
|
inline |
The copy constructor.
Definition at line 231 of file conindex.h.
|
inline |
The destructor.
Definition at line 268 of file conindex.h.
|
inline |
Retrieves the nth Betti number.
Definition at line 301 of file conindex.h.
|
inline |
Retrieves the 'i'th [torsion] coefficient at the nth level.
Returns 0 if 'i' is beyond the available scope.
Definition at line 323 of file conindex.h.
|
inline |
Computes the Conley index.
If requested, uses the two-layer construction. Otherwise, first tries the flat model, and switches to the two-layer construction only in the case of failure.
Definition at line 417 of file conindex.h.
|
inline |
Defines the Conley index by the given Betti numbers and the given maps in homology.
Definition at line 958 of file conindex.h.
|
inline |
Defines the Conley index by the given Betti numbers and adds the identity map.
Definition at line 998 of file conindex.h.
|
inline |
Retrieves the top level, or the maximal dimension of the index.
The numbers of available levels are from 0 to dim inclusive. Returns -1 if the index is undefined.
Definition at line 337 of file conindex.h.
|
inline |
Retrieves a human-readable text showing the eigenvalues.
Definition at line 917 of file conindex.h.
|
inline |
Computes the eigenvalues of the index map.
The eigenvalues are appended to the given vectors of doubles with the "push_back" method. Returns the number of eigenvalues or -1 in case of failure.
Definition at line 765 of file conindex.h.
References dgeev_().
|
inline |
Retrieves a human-readable text representation of the homology.
Definition at line 368 of file conindex.h.
|
inline |
Retrieves the matrix of the index map at the given level.
Returns 0 if the map at this level is zero.
Definition at line 315 of file conindex.h.
|
inline |
Retrieves a human-readable text representation of the map.
Definition at line 343 of file conindex.h.
|
inline |
The assignment operator.
Definition at line 249 of file conindex.h.
|
inline |
Reduces the index map using some shift equivalences to certain extent.
Shrinks the matrices and generators if requested to.
Definition at line 617 of file conindex.h.
|
staticprivate |
Rounds a real number to the given precision.
If the absolute value of the number is below the given threshold then the number is truncated to 0.
Definition at line 284 of file conindex.h.
|
inline |
Sets the index pair to be used to compute the Conley index.
Definition at line 276 of file conindex.h.
|
inline |
Verifies if the index is trivial.
Returns true if yes, false if it is non-trivial. Note: This information is tabulated.
Definition at line 894 of file conindex.h.
|
inline |
Truncates the Conley index to the new top level.
Definition at line 754 of file conindex.h.
|
friend |
Converts the Conley index to a string (without the index pair).
Definition at line 1022 of file conindex.h.
|
friend |
Retrieves the Conley index from a string (without the index pair).
Definition at line 1061 of file conindex.h.
|
private |
An object that feeds this class with cubes.
Definition at line 165 of file conindex.h.
|
private |
The torsion coefficients of the corresponding homology generators.
If delta () == 1, then no torsion.
Definition at line 172 of file conindex.h.
|
private |
The matrices of the index map at each level.
Definition at line 175 of file conindex.h.
|
mutableprivate |
Variable that stores the tabulated information on whether the index is nontrivial.
Values used: -1 = unknown, 0 = trivial, 1 = nontrivial.
Definition at line 194 of file conindex.h.
|
private |
The number of the top homology level.
Definition at line 168 of file conindex.h.