summaryrefslogtreecommitdiff
path: root/src/cython/gudhi.pyx
blob: 6fab07265a3a8c2d2823b7b14aad9b7a6cf93391 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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