diff options
Diffstat (limited to 'src/cython/gudhi.pyx')
-rw-r--r-- | src/cython/gudhi.pyx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/cython/gudhi.pyx b/src/cython/gudhi.pyx new file mode 100644 index 00000000..6fab0726 --- /dev/null +++ b/src/cython/gudhi.pyx @@ -0,0 +1,18 @@ +from cython cimport numeric +cimport cgudhi + +cdef class SimplexTree: + cdef cgudhi.Simplex_tree[cgudhi.Simplex_tree_options_full_featured] *thisptr + def __cinit__(self): + self.thisptr = new cgudhi.Simplex_tree[cgudhi.Simplex_tree_options_full_featured]() + def __dealloc__(self): + if self.thisptr != NULL: + del self.thisptr + +cdef class MiniSimplexTree: + cdef cgudhi.Simplex_tree[cgudhi.Simplex_tree_options_fast_persistence] *thisptr + def __cinit__(self): + self.thisptr = new cgudhi.Simplex_tree[cgudhi.Simplex_tree_options_fast_persistence]() + def __dealloc__(self): + if self.thisptr != NULL: + del self.thisptr |