diff options
author | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2019-12-16 23:10:24 +0100 |
---|---|---|
committer | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2019-12-16 23:10:24 +0100 |
commit | b5510c0c362cd2bef79d82fd9809e654aea73957 (patch) | |
tree | 926ab134ff6e2e93b30deae8dcc1782913163944 /src/python/doc | |
parent | 3f1601665cbd0b7397c9c19f55d608246192207b (diff) |
Add numpy ndarray to init a cubical and a periodic one
Diffstat (limited to 'src/python/doc')
-rw-r--r-- | src/python/doc/cubical_complex_user.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/python/doc/cubical_complex_user.rst b/src/python/doc/cubical_complex_user.rst index b13b500e..21806038 100644 --- a/src/python/doc/cubical_complex_user.rst +++ b/src/python/doc/cubical_complex_user.rst @@ -142,8 +142,8 @@ 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], + from numpy import array as np_array + periodic_cc = pcc(numpy_array = np_array([[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.' |