Create package

This commit is contained in:
2022-11-27 00:56:14 +01:00
parent a27f182090
commit 6f4c650af9
20 changed files with 310 additions and 4 deletions

17
prueba/cfimdlp.pyx Normal file
View File

@@ -0,0 +1,17 @@
# distutils: language = c++
# cython: language_level = 3
from libcpp.vector cimport vector
cdef extern from "FImdlp.h" namespace "FImdlp":
cdef cppclass FImdlp:
FImdlp() except +
vector[float] cutPoints(vector[int]&, vector[int]&)
cdef class CFImdlp:
cdef FImdlp *thisptr
def __cinit__(self):
self.thisptr = new FImdlp()
def __dealloc__(self):
del self.thisptr
def cut_points(self, X, y):
return self.thisptr.cutPoints(X, y)