36#ifndef _CAPD_HOMENGIN_HOMOLOGY_H_
37#define _CAPD_HOMENGIN_HOMOLOGY_H_
64 int *result,
const char *engine = 0,
const int *wrapping = 0,
69 bool soutput =
sout. show;
70 bool coutput =
scon. show;
86 X. setwrapping (wrapping, dim);
99 e -> homology (X, hom);
100 sout <<
"The computed homology is " << hom <<
".\n";
103 int levels = hom. countLevels ();
104 for (
int i = 0; i <= dim; ++ i)
105 result [i] = (i < levels) ? hom. getBetti (i) : 0;
An algebraic structure that represents a finitely generated Abelian group with gradation.
A bitmap buffer stored in the memory, not in a file.
An abstract class that is inherited by all the homology engines.
static const engine * find(const cubfile *X, const cubfile *Y, const engine::enginelist &elist=engine::engines)
Finds the most appropriate homology engine.
This file defines a very simple interface to manipulating a full cubical set represented as a bitmap ...
This file defines several engines for the homology computation of cubical sets.
ofstreamcout fcout
An output stream defined by M. Mrozek in the CAPD library.
void ComputeBettiNumbers(const void *buffer, int *sizes, int dim, int *result, const char *engine=0, const int *wrapping=0, bool quiet=false)
Computes the Betti numbers of the given set of full cubes encoded in a binary bitmap.
This namespace contains the core of the homology computation procedures and related classes and templ...
outputstream sout
A replacement for standard output stream, with optional logging and other features provided by the cl...
outputstream scon
The console output stream to which one should put all the junk that spoils the log file,...