diff options
author | Vincent Rouvreau <vincent.rouvreau@inria.fr> | 2022-03-31 21:15:18 +0200 |
---|---|---|
committer | Vincent Rouvreau <vincent.rouvreau@inria.fr> | 2022-03-31 21:15:18 +0200 |
commit | f4b543bb4891b1c2aa104e45cc5a0d07b56e6977 (patch) | |
tree | 234f8dc6f96a734866f3a18b9e2ba6c6f448848b /src/python | |
parent | 37dcedb59cd2a6b70119688ea24c978749d63154 (diff) |
code review: no need to nogil for cheap functions. Repeat get_float_relative_precision is only for safe mode
Diffstat (limited to 'src/python')
-rw-r--r-- | src/python/gudhi/alpha_complex.pyx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/python/gudhi/alpha_complex.pyx b/src/python/gudhi/alpha_complex.pyx index 9af62b43..e63796db 100644 --- a/src/python/gudhi/alpha_complex.pyx +++ b/src/python/gudhi/alpha_complex.pyx @@ -32,9 +32,9 @@ cdef extern from "Alpha_complex_interface.h" namespace "Gudhi": vector[double] get_point(int vertex) nogil except + void create_simplex_tree(Simplex_tree_interface_full_featured* simplex_tree, double max_alpha_square, bool default_filtration_value) nogil except + @staticmethod - void set_float_relative_precision(double precision) nogil + void set_float_relative_precision(double precision) @staticmethod - double get_float_relative_precision() nogil + double get_float_relative_precision() # AlphaComplex python interface cdef class AlphaComplex: @@ -157,7 +157,8 @@ cdef class AlphaComplex: def get_float_relative_precision(): """ :returns: The float relative precision of filtration values computation in - :func:`~gudhi.AlphaComplex.create_simplex_tree`. + :func:`~gudhi.AlphaComplex.create_simplex_tree` when the AlphaComplex is constructed with + :code:`precision = 'safe'` (the default). :rtype: float """ return Alpha_complex_interface.get_float_relative_precision() |