1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
from . cimport wavelet
cimport numpy as np
np.import_array()
include "config.pxi"
ctypedef Py_ssize_t pywt_index_t
ctypedef fused data_t:
np.float32_t
np.float64_t
cdef int have_c99_complex
IF HAVE_C99_CPLX:
ctypedef fused cdata_t:
np.float32_t
np.float64_t
np.complex64_t
np.complex128_t
have_c99_complex = 1
ELSE:
ctypedef data_t cdata_t
have_c99_complex = 0
cdef public class Wavelet [type WaveletType, object WaveletObject]:
cdef wavelet.DiscreteWavelet* w
cdef readonly name
cdef readonly number
cdef public class ContinuousWavelet [type ContinuousWaveletType, object ContinuousWaveletObject]:
cdef wavelet.ContinuousWavelet* w
cdef readonly name
cdef readonly number
cdef readonly dt
cpdef np.dtype _check_dtype(data)
# FIXME: To be removed
cdef c_wavelet_from_object(wavelet)
|