diff options
author | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2019-03-12 23:12:51 +0100 |
---|---|---|
committer | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2019-03-12 23:12:51 +0100 |
commit | 6112bd15d73b00a07edd54eeaf9c94cdff93aa9e (patch) | |
tree | 72c28a22a98dd64184b09a2cda2aa7aaac6072fb /src/Tangential_complex/include | |
parent | 75d981b8bc190420204c189f43fb6f6a744eb333 (diff) |
Add some documentation for Fix #31
Cythonization of Fix #31
Add some tests
Diffstat (limited to 'src/Tangential_complex/include')
-rw-r--r-- | src/Tangential_complex/include/gudhi/Tangential_complex.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/Tangential_complex/include/gudhi/Tangential_complex.h b/src/Tangential_complex/include/gudhi/Tangential_complex.h index 37cdf1b4..4a78127c 100644 --- a/src/Tangential_complex/include/gudhi/Tangential_complex.h +++ b/src/Tangential_complex/include/gudhi/Tangential_complex.h @@ -322,7 +322,11 @@ class Tangential_complex { for (std::size_t i = 0; i < m_points.size(); ++i) m_are_tangent_spaces_computed[i] = true; } - /// Computes the tangential complex. + /** \brief Computes the tangential complex. + * \exception std::invalid_argument In debug mode, if the computed star dimension is too low. Try to set a bigger + * maximal edge length value with `Tangential_complex::set_max_squared_edge_length` if + * this happens. + */ void compute_tangential_complex() { #ifdef GUDHI_TC_PERFORM_EXTRA_CHECKS std::cerr << red << "WARNING: GUDHI_TC_PERFORM_EXTRA_CHECKS is defined. " @@ -1984,6 +1988,13 @@ class Tangential_complex { return os; } + /** \brief Sets the maximal possible squared edge length for the edges in the triangulations. + * + * @param[in] max_squared_edge_length Maximal possible squared edge length. + * + * If the maximal edge length value is too low `Tangential_complex::compute_tangential_complex` will throw an + * exception in debug mode. + */ void set_max_squared_edge_length(FT max_squared_edge_length) { m_max_squared_edge_length = max_squared_edge_length; } private: |