summaryrefslogtreecommitdiff
path: root/src/Bitmap_cubical_complex/include/gudhi/Bitmap_cubical_complex.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Bitmap_cubical_complex/include/gudhi/Bitmap_cubical_complex.h')
-rw-r--r--src/Bitmap_cubical_complex/include/gudhi/Bitmap_cubical_complex.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/Bitmap_cubical_complex/include/gudhi/Bitmap_cubical_complex.h b/src/Bitmap_cubical_complex/include/gudhi/Bitmap_cubical_complex.h
index 67e1fed3..56fa297c 100644
--- a/src/Bitmap_cubical_complex/include/gudhi/Bitmap_cubical_complex.h
+++ b/src/Bitmap_cubical_complex/include/gudhi/Bitmap_cubical_complex.h
@@ -46,18 +46,14 @@ const bool globalDbg = false;
template <typename T> class is_before_in_filtration;
/**
- * This is a Bitmap_cubical_complex class. It joints a functionalities of Bitmap_cubical_complex_base and
+ * @brief Cubical complex represented as a bitmap.
+ * @ingroup cubical_complex
+ * @details This is a Bitmap_cubical_complex class. It joints a functionalities of Bitmap_cubical_complex_base and
* Bitmap_cubical_complex_periodic_boundary_conditions_base classes into
* Gudhi persistent homology engine. It is a template class that inherit from its template parameter. The template
* parameter is supposed to be either Bitmap_cubical_complex_base or
* Bitmap_cubical_complex_periodic_boundary_conditions_base class.
**/
-
-/**
- *@class Bitmap_cubical_complex
- *@brief Cubical complex represented as a bitmap.
- *@ingroup cubical_complex
- */
template <typename T>
class Bitmap_cubical_complex : public T {
public:
@@ -321,7 +317,7 @@ class Bitmap_cubical_complex : public T {
};
/**
- * Filtration_simplex_range provides the ranges for Filtration_simplex_iterator.
+ * @brief Filtration_simplex_range provides the ranges for Filtration_simplex_iterator.
**/
class Filtration_simplex_range {
// Range over the simplices of the complex in the order of the filtration.
@@ -492,7 +488,7 @@ class Bitmap_cubical_complex : public T {
};
/**
- * Class needed for compatibility with Gudhi. Not useful for other purposes.
+ * @brief Class needed for compatibility with Gudhi. Not useful for other purposes.
**/
class Skeleton_simplex_range {
// Range over the simplices of the complex in the order of the filtration.
@@ -549,7 +545,8 @@ void Bitmap_cubical_complex<T>::initialize_simplex_associated_to_key() {
this->simplex_associated_to_key = std::vector<size_t>(this->data.size());
std::iota(std::begin(simplex_associated_to_key), std::end(simplex_associated_to_key), 0);
#ifdef GUDHI_USE_TBB
- tbb::parallel_sort(simplex_associated_to_key, is_before_in_filtration<T>(this));
+ tbb::parallel_sort(simplex_associated_to_key.begin(), simplex_associated_to_key.end(),
+ is_before_in_filtration<T>(this));
#else
std::sort(simplex_associated_to_key.begin(), simplex_associated_to_key.end(), is_before_in_filtration<T>(this));
#endif