This file contains the definition of a class which represents a simplex. More...
#include "chomp/system/config.h"
#include "chomp/system/textfile.h"
#include "chomp/struct/integer.h"
#include "chomp/homology/gcomplex.h"
#include <iostream>
#include <fstream>
#include <cstdlib>
Go to the source code of this file.
Classes | |
class | chomp::homology::Simplex |
This class defines a simplex as a geometric cell that can be used as a member of a geometric complex. More... | |
Namespaces | |
namespace | chomp |
This namespace contains the entire CHomP library interface. | |
namespace | chomp::homology |
This namespace contains the core of the homology computation procedures and related classes and templates contained in the CHomP C++ library. | |
Typedefs | |
typedef Simplex | chomp::homology::simplex |
A lower-case name for a simplex [deprecated]. | |
typedef gcomplex< simplex, integer > | chomp::homology::simplicialcomplex |
A lower-case name for a simplicial complex [deprecated]. | |
typedef hashedset< simplex > | chomp::homology::simplices |
An alternative name for a set of simplices [deprecated]. | |
Functions | |
int | chomp::homology::operator== (const Simplex &s, const Simplex &t) |
The operator == that compares whether the two simplices are the same, that is, have the same vertices in the same order. | |
int | chomp::homology::operator!= (const Simplex &s, const Simplex &t) |
The operator != verifies if the two simplices are different. | |
int | chomp::homology::boundarylength (const Simplex &s) |
Returns the length of the boundary of a simplex. | |
int | chomp::homology::boundarycoef (const Simplex &, int i) |
Returns the i-th coefficient in the boundary of a simplex. | |
Simplex | chomp::homology::boundarycell (const Simplex &s, int i) |
Returns the i-th boundary face of a simplex. | |
Simplex | chomp::homology::boundarycell (const Simplex &s, int i, bool) |
Returns the i-th boundary face of a simplex. | |
std::ostream & | chomp::homology::operator<< (std::ostream &out, const Simplex &s) |
Writes a simplex to the output stream in the text format. | |
std::istream & | chomp::homology::operator>> (std::istream &in, Simplex &s) |
Reads a simplex from an imput stream from a text format. |
This file contains the definition of a class which represents a simplex.
The definition complies with the requirements of the homology software so that simplices can be used as cells in a geometric complex, and also in algorithms for homology computation.
Definition in file simplex.h.