diff options
-rw-r--r-- | src/python/doc/alpha_complex_user.rst | 62 | ||||
-rw-r--r-- | src/python/gudhi/alpha_complex.pyx | 5 |
2 files changed, 33 insertions, 34 deletions
diff --git a/src/python/doc/alpha_complex_user.rst b/src/python/doc/alpha_complex_user.rst index 6f35cc15..5e028cdc 100644 --- a/src/python/doc/alpha_complex_user.rst +++ b/src/python/doc/alpha_complex_user.rst @@ -59,7 +59,7 @@ The output is: .. testoutput:: - Alpha complex is of dimension 2 - 25 simplices - 7 vertices. + Alpha complex is of dimension 2 - 25 simplices - 7 vertices. [0] -> 0.00 [1] -> 0.00 [2] -> 0.00 @@ -215,36 +215,36 @@ The output is: .. testoutput:: - Weighted alpha complex is of dimension 3 - 29 simplices - 5 vertices. - [ 0 ] -> [-4] - [ 1 ] -> [-4] - [ 2 ] -> [-4] - [ 3 ] -> [-4] - [ 1, 0 ] -> [-2] - [ 2, 0 ] -> [-2] - [ 2, 1 ] -> [-2] - [ 3, 0 ] -> [-2] - [ 3, 1 ] -> [-2] - [ 3, 2 ] -> [-2] - [ 2, 1, 0 ] -> [-1.33333] - [ 3, 1, 0 ] -> [-1.33333] - [ 3, 2, 0 ] -> [-1.33333] - [ 3, 2, 1 ] -> [-1.33333] - [ 3, 2, 1, 0 ] -> [-1] - [ 4 ] -> [-1] - [ 4, 2 ] -> [-1] - [ 4, 0 ] -> [23] - [ 4, 1 ] -> [23] - [ 4, 2, 0 ] -> [23] - [ 4, 2, 1 ] -> [23] - [ 4, 3 ] -> [23] - [ 4, 3, 2 ] -> [23] - [ 4, 1, 0 ] -> [95] - [ 4, 2, 1, 0 ] -> [95] - [ 4, 3, 0 ] -> [95] - [ 4, 3, 1 ] -> [95] - [ 4, 3, 2, 0 ] -> [95] - [ 4, 3, 2, 1 ] -> [95] + Weighted alpha complex is of dimension 3 - 29 simplices - 5 vertices. + [0] -> -4.00 + [1] -> -4.00 + [2] -> -4.00 + [3] -> -4.00 + [0, 1] -> -2.00 + [0, 2] -> -2.00 + [1, 2] -> -2.00 + [0, 3] -> -2.00 + [1, 3] -> -2.00 + [2, 3] -> -2.00 + [0, 2, 3] -> -1.33 + [1, 2, 3] -> -1.33 + [0, 1, 2] -> -1.33 + [0, 1, 3] -> -1.33 + [0, 1, 2, 3] -> -1.00 + [4] -> -1.00 + [3, 4] -> -1.00 + [0, 4] -> 23.00 + [1, 4] -> 23.00 + [2, 4] -> 23.00 + [0, 3, 4] -> 23.00 + [1, 3, 4] -> 23.00 + [2, 3, 4] -> 23.00 + [0, 1, 4] -> 95.00 + [0, 2, 4] -> 95.00 + [1, 2, 4] -> 95.00 + [0, 1, 3, 4] -> 95.00 + [0, 2, 3, 4] -> 95.00 + [1, 2, 3, 4] -> 95.00 Example from OFF file ^^^^^^^^^^^^^^^^^^^^^ diff --git a/src/python/gudhi/alpha_complex.pyx b/src/python/gudhi/alpha_complex.pyx index 681faebe..d4c4ba20 100644 --- a/src/python/gudhi/alpha_complex.pyx +++ b/src/python/gudhi/alpha_complex.pyx @@ -123,9 +123,8 @@ cdef class AlphaComplex: cdef vector[double] wgts pts = points wgts = weights - if len(weights) == 0: - with nogil: - self.this_ptr = new Alpha_complex_interface(pts, wgts, fast, exact) + with nogil: + self.this_ptr = new Alpha_complex_interface(pts, wgts, fast, exact) def __dealloc__(self): if self.this_ptr != NULL: |