summaryrefslogtreecommitdiff
path: root/src/Bitmap_cubical_complex/example/Random_bitmap_cubical_complex.cpp
diff options
context:
space:
mode:
authorpdlotko <pdlotko@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-01-13 07:39:34 +0000
committerpdlotko <pdlotko@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-01-13 07:39:34 +0000
commit0181c1f8c6122c50f991abea1ec8c4ec6bf392b4 (patch)
treebd8bb1d5eddc0ebed12aa01466336d9726814ce0 /src/Bitmap_cubical_complex/example/Random_bitmap_cubical_complex.cpp
parent28d0848f733f0dc6a019b3328c80168d10e0a5ae (diff)
First version of a code changed so that it computes persistence of cubical complexes with or without periodic boundary conditions, but do not require duplication of code that link it to Gudhi persistence engine.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/bitmap@961 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 506db0edd18818287fe110dcd04c15e369b28171
Diffstat (limited to 'src/Bitmap_cubical_complex/example/Random_bitmap_cubical_complex.cpp')
-rw-r--r--src/Bitmap_cubical_complex/example/Random_bitmap_cubical_complex.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Bitmap_cubical_complex/example/Random_bitmap_cubical_complex.cpp b/src/Bitmap_cubical_complex/example/Random_bitmap_cubical_complex.cpp
index 36c22344..97347162 100644
--- a/src/Bitmap_cubical_complex/example/Random_bitmap_cubical_complex.cpp
+++ b/src/Bitmap_cubical_complex/example/Random_bitmap_cubical_complex.cpp
@@ -74,11 +74,11 @@ The program will create random cubical complex of that sizes and compute persist
- Bitmap_cubical_complex<double> b( sizes , data );
+ Bitmap_cubical_complex< Bitmap_cubical_complex_base<double> > b( sizes , data );
// Compute the persistence diagram of the complex
- persistent_cohomology::Persistent_cohomology< Bitmap_cubical_complex<double>, Field_Zp > pcoh(b);
+ persistent_cohomology::Persistent_cohomology< Bitmap_cubical_complex< Bitmap_cubical_complex_base<double> >, Field_Zp > pcoh(b);
pcoh.init_coefficients( p ); //initilizes the coefficient field for homology
pcoh.compute_persistent_cohomology( min_persistence );