summaryrefslogtreecommitdiff
path: root/src/python/doc/cubical_complex_user.rst
diff options
context:
space:
mode:
authorVincent Rouvreau <10407034+VincentRouvreau@users.noreply.github.com>2020-01-07 17:22:16 +0100
committerGitHub <noreply@github.com>2020-01-07 17:22:16 +0100
commitad4c4d8e3c40b278c05833672c78a5e1cf169284 (patch)
tree52e4f4cb94f386e03a847f2d6086efb5666c44f5 /src/python/doc/cubical_complex_user.rst
parent1a9c2e7e25751ec2399bf12d086d7e2113c02faf (diff)
parent6a7a7b6d6d81946dd903f68f525389ab2fd51f71 (diff)
Merge pull request #178 from VincentRouvreau/numpy_array_input_for_cubical
Fix #158 - Add numpy ndarray to init a cubical and a periodic one
Diffstat (limited to 'src/python/doc/cubical_complex_user.rst')
-rw-r--r--src/python/doc/cubical_complex_user.rst3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/python/doc/cubical_complex_user.rst b/src/python/doc/cubical_complex_user.rst
index b13b500e..56cf0170 100644
--- a/src/python/doc/cubical_complex_user.rst
+++ b/src/python/doc/cubical_complex_user.rst
@@ -142,8 +142,7 @@ Or it can be defined as follows:
.. testcode::
from gudhi import PeriodicCubicalComplex as pcc
- periodic_cc = pcc(dimensions=[3,3],
- top_dimensional_cells= [0, 0, 0, 0, 1, 0, 0, 0, 0],
+ periodic_cc = pcc(top_dimensional_cells = [[0, 0, 0], [0, 1, 0], [0, 0, 0]],
periodic_dimensions=[True, False])
result_str = 'Periodic cubical complex is of dimension ' + repr(periodic_cc.dimension()) + ' - ' + \
repr(periodic_cc.num_simplices()) + ' simplices.'