diff options
author | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2019-06-28 09:54:59 +0200 |
---|---|---|
committer | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2019-06-28 09:54:59 +0200 |
commit | c7fcb08c78428913d848496da30eb713e85cc281 (patch) | |
tree | 05226fe9ac0b829253f2696c24776c411f000058 /src/cython/cython/cubical_complex.pyx | |
parent | 8014a88ab31bc2c0278824a3da65ba7ca17fdce9 (diff) | |
parent | 695655d5cb347d809733a5fa1c0458fb98fd3272 (diff) |
Merge branch 'master' into simplex_tree_insert_duplicated_vertices_fix_vincent
Diffstat (limited to 'src/cython/cython/cubical_complex.pyx')
-rw-r--r-- | src/cython/cython/cubical_complex.pyx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/cython/cython/cubical_complex.pyx b/src/cython/cython/cubical_complex.pyx index e94cd539..509af6ca 100644 --- a/src/cython/cython/cubical_complex.pyx +++ b/src/cython/cython/cubical_complex.pyx @@ -5,6 +5,8 @@ from libcpp.string cimport string from libcpp cimport bool import os +from numpy import array as np_array + """This file is part of the Gudhi Library. The Gudhi library (Geometric Understanding in Higher Dimensions) is a generic C++ library for computational topology. @@ -182,9 +184,9 @@ cdef class CubicalComplex: specific dimension. :param dimension: The specific dimension. - :type from_value: int. + :type dimension: int. :returns: The persistence intervals. - :rtype: list of pair of float + :rtype: numpy array of dimension 2 :note: intervals_in_dim function requires persistence function to be launched first. @@ -195,4 +197,4 @@ cdef class CubicalComplex: else: print("intervals_in_dim function requires persistence function" " to be launched first.") - return intervals_result + return np_array(intervals_result) |