summaryrefslogtreecommitdiff
path: root/src/cython/cython/simplex_tree.pyx
diff options
context:
space:
mode:
authorROUVREAU Vincent <vincent.rouvreau@inria.fr>2019-06-27 21:51:22 +0200
committerROUVREAU Vincent <vincent.rouvreau@inria.fr>2019-06-27 21:51:22 +0200
commit6a91777aa7229536d177430aadc4d7e37274cdcb (patch)
tree2ee056688826f72bedc36699b869c8dede58b332 /src/cython/cython/simplex_tree.pyx
parent68fadb4ebfe5b35a2eec99a9babafbee940a1b42 (diff)
parent9f249e001089af45186aaf0d196d6300705eee31 (diff)
Merge branch 'master' of github.com:GUDHI/gudhi-devel
Diffstat (limited to 'src/cython/cython/simplex_tree.pyx')
-rw-r--r--src/cython/cython/simplex_tree.pyx8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/cython/cython/simplex_tree.pyx b/src/cython/cython/simplex_tree.pyx
index ea99c940..43bc11c9 100644
--- a/src/cython/cython/simplex_tree.pyx
+++ b/src/cython/cython/simplex_tree.pyx
@@ -4,13 +4,15 @@ from libcpp.utility cimport pair
from libcpp cimport bool
from libcpp.string cimport string
+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.
Author(s): Vincent Rouvreau
- Copyright (C) 2016 Inria
+ Copyright (C) 2019 Inria
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -499,7 +501,7 @@ cdef class SimplexTree:
:param dimension: The specific dimension.
: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
:func:`persistence()<gudhi.SimplexTree.persistence>`
@@ -511,7 +513,7 @@ cdef class SimplexTree:
else:
print("intervals_in_dim function requires persistence function"
" to be launched first.")
- return intervals_result
+ return np_array(intervals_result)
def persistence_pairs(self):
"""This function returns a list of persistence birth and death simplices pairs.