Skip to content
Snippets Groups Projects
Commit a8631fbf authored by Florent Jaillet's avatar Florent Jaillet
Browse files

Updating the C files generated by Cython

parent 43500ba6
Branches
Tags
No related merge requests found
......@@ -750,7 +750,7 @@ typedef volatile __pyx_atomic_int_type __pyx_atomic_int;
#endif
 
 
/* "ltfat.pxd":57
/* "ltfat.pxd":61
* TIMEINV = 1
*
* ctypedef size_t ltfatInt # <<<<<<<<<<<<<<
......@@ -777,7 +777,7 @@ struct __pyx_MemviewEnum_obj;
struct __pyx_memoryview_obj;
struct __pyx_memoryviewslice_obj;
 
/* "ltfat.pxd":53
/* "ltfat.pxd":57
*
*
* cdef enum dgt_phasetype: # <<<<<<<<<<<<<<
......@@ -789,7 +789,7 @@ enum __pyx_t_7ltfatpy_4comp_5ltfat_dgt_phasetype {
__pyx_e_7ltfatpy_4comp_5ltfat_TIMEINV = 1
};
 
/* "ltfat.pxd":60
/* "ltfat.pxd":64
*
* # Values extracted from fftw3.h
* cdef enum dct_kind: # <<<<<<<<<<<<<<
......@@ -803,7 +803,7 @@ enum __pyx_t_7ltfatpy_4comp_5ltfat_dct_kind {
__pyx_e_7ltfatpy_4comp_5ltfat_DCTIV = 6
};
 
/* "ltfat.pxd":67
/* "ltfat.pxd":71
*
* # Values extracted from fftw3.h
* cdef enum dst_kind: # <<<<<<<<<<<<<<
......@@ -1821,7 +1821,7 @@ static PyObject *__pyx_tuple__18;
static PyObject *__pyx_tuple__19;
static PyObject *__pyx_tuple__20;
 
/* "ltfatpy/comp/comp_dct.pyx":71
/* "ltfatpy/comp/comp_dct.pyx":75
* # assume no negative indexing.
* @cython.wraparound(False)
* cdef comp_dct_cd(const double complex[:] f, const ltfatInt L, # <<<<<<<<<<<<<<
......@@ -1836,7 +1836,7 @@ static PyObject *__pyx_f_7ltfatpy_4comp_8comp_dct_comp_dct_cd(__Pyx_memviewslice
Py_ssize_t __pyx_t_2;
__Pyx_RefNannySetupContext("comp_dct_cd", 0);
 
/* "ltfatpy/comp/comp_dct.pyx":74
/* "ltfatpy/comp/comp_dct.pyx":78
* const ltfatInt W, const dct_kind kind, double complex[:] out):
* """ Internal function, do not use it """
* dct_cd(& f[0], L, W, & out[0], kind) # <<<<<<<<<<<<<<
......@@ -1847,7 +1847,7 @@ static PyObject *__pyx_f_7ltfatpy_4comp_8comp_dct_comp_dct_cd(__Pyx_memviewslice
__pyx_t_2 = 0;
dct_cd((&(*((__pyx_t_double_complex *) ( /* dim=0 */ (__pyx_v_f.data + __pyx_t_1 * __pyx_v_f.strides[0]) )))), __pyx_v_L, __pyx_v_W, (&(*((__pyx_t_double_complex *) ( /* dim=0 */ (__pyx_v_out.data + __pyx_t_2 * __pyx_v_out.strides[0]) )))), __pyx_v_kind);
 
/* "ltfatpy/comp/comp_dct.pyx":71
/* "ltfatpy/comp/comp_dct.pyx":75
* # assume no negative indexing.
* @cython.wraparound(False)
* cdef comp_dct_cd(const double complex[:] f, const ltfatInt L, # <<<<<<<<<<<<<<
......@@ -1862,7 +1862,7 @@ static PyObject *__pyx_f_7ltfatpy_4comp_8comp_dct_comp_dct_cd(__Pyx_memviewslice
return __pyx_r;
}
 
/* "ltfatpy/comp/comp_dct.pyx":80
/* "ltfatpy/comp/comp_dct.pyx":84
* # assume no negative indexing.
* @cython.wraparound(False)
* cdef comp_dct_d(const double[:] f, const ltfatInt L, # <<<<<<<<<<<<<<
......@@ -1877,7 +1877,7 @@ static PyObject *__pyx_f_7ltfatpy_4comp_8comp_dct_comp_dct_d(__Pyx_memviewslice
Py_ssize_t __pyx_t_2;
__Pyx_RefNannySetupContext("comp_dct_d", 0);
 
/* "ltfatpy/comp/comp_dct.pyx":83
/* "ltfatpy/comp/comp_dct.pyx":87
* const ltfatInt W, const dct_kind kind, double[:] out):
* """ Internal function, do not use it """
* dct_d(&f[0], L, W, & out[0], kind) # <<<<<<<<<<<<<<
......@@ -1888,7 +1888,7 @@ static PyObject *__pyx_f_7ltfatpy_4comp_8comp_dct_comp_dct_d(__Pyx_memviewslice
__pyx_t_2 = 0;
dct_d((&(*((double *) ( /* dim=0 */ (__pyx_v_f.data + __pyx_t_1 * __pyx_v_f.strides[0]) )))), __pyx_v_L, __pyx_v_W, (&(*((double *) ( /* dim=0 */ (__pyx_v_out.data + __pyx_t_2 * __pyx_v_out.strides[0]) )))), __pyx_v_kind);
 
/* "ltfatpy/comp/comp_dct.pyx":80
/* "ltfatpy/comp/comp_dct.pyx":84
* # assume no negative indexing.
* @cython.wraparound(False)
* cdef comp_dct_d(const double[:] f, const ltfatInt L, # <<<<<<<<<<<<<<
......@@ -1903,7 +1903,7 @@ static PyObject *__pyx_f_7ltfatpy_4comp_8comp_dct_comp_dct_d(__Pyx_memviewslice
return __pyx_r;
}
 
/* "ltfatpy/comp/comp_dct.pyx":89
/* "ltfatpy/comp/comp_dct.pyx":93
* # assume no negative indexing.
* @cython.wraparound(False)
* cpdef comp_dct(f, type): # <<<<<<<<<<<<<<
......@@ -1936,66 +1936,66 @@ static PyObject *__pyx_f_7ltfatpy_4comp_8comp_dct_comp_dct(PyObject *__pyx_v_f,
__Pyx_RefNannySetupContext("comp_dct", 0);
__Pyx_INCREF(__pyx_v_f);
 
/* "ltfatpy/comp/comp_dct.pyx":98
/* "ltfatpy/comp/comp_dct.pyx":102
* """
* cdef ltfatInt L, W
* if (f.dtype.type != np.float64) and (f.dtype.type != np.complex128): # <<<<<<<<<<<<<<
* raise TypeError("f data should be numpy.float64 or complex128")
* if type not in {1, 2, 3, 4}:
*/
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_f, __pyx_n_s_dtype); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 98, __pyx_L1_error)
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_f, __pyx_n_s_dtype); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 102, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_type); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 98, __pyx_L1_error)
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_type); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 102, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 98, __pyx_L1_error)
__pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 102, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_float64); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 98, __pyx_L1_error)
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_float64); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 102, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_t_2 = PyObject_RichCompare(__pyx_t_3, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 98, __pyx_L1_error)
__pyx_t_2 = PyObject_RichCompare(__pyx_t_3, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 102, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 98, __pyx_L1_error)
__pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 102, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
if (__pyx_t_5) {
} else {
__pyx_t_1 = __pyx_t_5;
goto __pyx_L4_bool_binop_done;
}
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_f, __pyx_n_s_dtype); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 98, __pyx_L1_error)
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_f, __pyx_n_s_dtype); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 102, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 98, __pyx_L1_error)
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 102, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 98, __pyx_L1_error)
__pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 102, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_complex128); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 98, __pyx_L1_error)
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_complex128); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 102, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_t_2 = PyObject_RichCompare(__pyx_t_4, __pyx_t_3, Py_NE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 98, __pyx_L1_error)
__pyx_t_2 = PyObject_RichCompare(__pyx_t_4, __pyx_t_3, Py_NE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 102, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 98, __pyx_L1_error)
__pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 102, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_t_1 = __pyx_t_5;
__pyx_L4_bool_binop_done:;
if (__pyx_t_1) {
 
/* "ltfatpy/comp/comp_dct.pyx":99
/* "ltfatpy/comp/comp_dct.pyx":103
* cdef ltfatInt L, W
* if (f.dtype.type != np.float64) and (f.dtype.type != np.complex128):
* raise TypeError("f data should be numpy.float64 or complex128") # <<<<<<<<<<<<<<
* if type not in {1, 2, 3, 4}:
* raise TypeError("type should be 1, 2, 3 or 4")
*/
__pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple_, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 99, __pyx_L1_error)
__pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple_, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 103, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_Raise(__pyx_t_2, 0, 0, 0);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__PYX_ERR(0, 99, __pyx_L1_error)
__PYX_ERR(0, 103, __pyx_L1_error)
 
/* "ltfatpy/comp/comp_dct.pyx":98
/* "ltfatpy/comp/comp_dct.pyx":102
* """
* cdef ltfatInt L, W
* if (f.dtype.type != np.float64) and (f.dtype.type != np.complex128): # <<<<<<<<<<<<<<
......@@ -2004,7 +2004,7 @@ static PyObject *__pyx_f_7ltfatpy_4comp_8comp_dct_comp_dct(PyObject *__pyx_v_f,
*/
}
 
/* "ltfatpy/comp/comp_dct.pyx":100
/* "ltfatpy/comp/comp_dct.pyx":104
* if (f.dtype.type != np.float64) and (f.dtype.type != np.complex128):
* raise TypeError("f data should be numpy.float64 or complex128")
* if type not in {1, 2, 3, 4}: # <<<<<<<<<<<<<<
......@@ -2013,32 +2013,32 @@ static PyObject *__pyx_f_7ltfatpy_4comp_8comp_dct_comp_dct(PyObject *__pyx_v_f,
*/
__Pyx_INCREF(__pyx_v_type);
__pyx_t_2 = __pyx_v_type;
__pyx_t_3 = PyObject_RichCompare(__pyx_t_2, __pyx_int_1, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 100, __pyx_L1_error)
__pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 100, __pyx_L1_error)
__pyx_t_3 = PyObject_RichCompare(__pyx_t_2, __pyx_int_1, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 104, __pyx_L1_error)
__pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 104, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
if (__pyx_t_5) {
} else {
__pyx_t_1 = __pyx_t_5;
goto __pyx_L7_bool_binop_done;
}
__pyx_t_3 = PyObject_RichCompare(__pyx_t_2, __pyx_int_2, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 100, __pyx_L1_error)
__pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 100, __pyx_L1_error)
__pyx_t_3 = PyObject_RichCompare(__pyx_t_2, __pyx_int_2, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 104, __pyx_L1_error)
__pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 104, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
if (__pyx_t_5) {
} else {
__pyx_t_1 = __pyx_t_5;
goto __pyx_L7_bool_binop_done;
}
__pyx_t_3 = PyObject_RichCompare(__pyx_t_2, __pyx_int_3, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 100, __pyx_L1_error)
__pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 100, __pyx_L1_error)
__pyx_t_3 = PyObject_RichCompare(__pyx_t_2, __pyx_int_3, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 104, __pyx_L1_error)
__pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 104, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
if (__pyx_t_5) {
} else {
__pyx_t_1 = __pyx_t_5;
goto __pyx_L7_bool_binop_done;
}
__pyx_t_3 = PyObject_RichCompare(__pyx_t_2, __pyx_int_4, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 100, __pyx_L1_error)
__pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 100, __pyx_L1_error)
__pyx_t_3 = PyObject_RichCompare(__pyx_t_2, __pyx_int_4, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 104, __pyx_L1_error)
__pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 104, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_1 = __pyx_t_5;
__pyx_L7_bool_binop_done:;
......@@ -2046,20 +2046,20 @@ static PyObject *__pyx_f_7ltfatpy_4comp_8comp_dct_comp_dct(PyObject *__pyx_v_f,
__pyx_t_5 = (__pyx_t_1 != 0);
if (__pyx_t_5) {
 
/* "ltfatpy/comp/comp_dct.pyx":101
/* "ltfatpy/comp/comp_dct.pyx":105
* raise TypeError("f data should be numpy.float64 or complex128")
* if type not in {1, 2, 3, 4}:
* raise TypeError("type should be 1, 2, 3 or 4") # <<<<<<<<<<<<<<
*
* dct_type = {1: DCTI, 2: DCTII, 3: DCTIII, 4: DCTIV}
*/
__pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__2, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 101, __pyx_L1_error)
__pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__2, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 105, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_Raise(__pyx_t_2, 0, 0, 0);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__PYX_ERR(0, 101, __pyx_L1_error)
__PYX_ERR(0, 105, __pyx_L1_error)
 
/* "ltfatpy/comp/comp_dct.pyx":100
/* "ltfatpy/comp/comp_dct.pyx":104
* if (f.dtype.type != np.float64) and (f.dtype.type != np.complex128):
* raise TypeError("f data should be numpy.float64 or complex128")
* if type not in {1, 2, 3, 4}: # <<<<<<<<<<<<<<
......@@ -2068,89 +2068,89 @@ static PyObject *__pyx_f_7ltfatpy_4comp_8comp_dct_comp_dct(PyObject *__pyx_v_f,
*/
}
 
/* "ltfatpy/comp/comp_dct.pyx":103
/* "ltfatpy/comp/comp_dct.pyx":107
* raise TypeError("type should be 1, 2, 3 or 4")
*
* dct_type = {1: DCTI, 2: DCTII, 3: DCTIII, 4: DCTIV} # <<<<<<<<<<<<<<
*
* if f.ndim > 1:
*/
__pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 103, __pyx_L1_error)
__pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 107, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_3 = __Pyx_PyInt_From_enum____pyx_t_7ltfatpy_4comp_5ltfat_dct_kind(__pyx_e_7ltfatpy_4comp_5ltfat_DCTI); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 103, __pyx_L1_error)
__pyx_t_3 = __Pyx_PyInt_From_enum____pyx_t_7ltfatpy_4comp_5ltfat_dct_kind(__pyx_e_7ltfatpy_4comp_5ltfat_DCTI); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 107, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
if (PyDict_SetItem(__pyx_t_2, __pyx_int_1, __pyx_t_3) < 0) __PYX_ERR(0, 103, __pyx_L1_error)
if (PyDict_SetItem(__pyx_t_2, __pyx_int_1, __pyx_t_3) < 0) __PYX_ERR(0, 107, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_3 = __Pyx_PyInt_From_enum____pyx_t_7ltfatpy_4comp_5ltfat_dct_kind(__pyx_e_7ltfatpy_4comp_5ltfat_DCTII); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 103, __pyx_L1_error)
__pyx_t_3 = __Pyx_PyInt_From_enum____pyx_t_7ltfatpy_4comp_5ltfat_dct_kind(__pyx_e_7ltfatpy_4comp_5ltfat_DCTII); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 107, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
if (PyDict_SetItem(__pyx_t_2, __pyx_int_2, __pyx_t_3) < 0) __PYX_ERR(0, 103, __pyx_L1_error)
if (PyDict_SetItem(__pyx_t_2, __pyx_int_2, __pyx_t_3) < 0) __PYX_ERR(0, 107, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_3 = __Pyx_PyInt_From_enum____pyx_t_7ltfatpy_4comp_5ltfat_dct_kind(__pyx_e_7ltfatpy_4comp_5ltfat_DCTIII); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 103, __pyx_L1_error)
__pyx_t_3 = __Pyx_PyInt_From_enum____pyx_t_7ltfatpy_4comp_5ltfat_dct_kind(__pyx_e_7ltfatpy_4comp_5ltfat_DCTIII); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 107, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
if (PyDict_SetItem(__pyx_t_2, __pyx_int_3, __pyx_t_3) < 0) __PYX_ERR(0, 103, __pyx_L1_error)
if (PyDict_SetItem(__pyx_t_2, __pyx_int_3, __pyx_t_3) < 0) __PYX_ERR(0, 107, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_3 = __Pyx_PyInt_From_enum____pyx_t_7ltfatpy_4comp_5ltfat_dct_kind(__pyx_e_7ltfatpy_4comp_5ltfat_DCTIV); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 103, __pyx_L1_error)
__pyx_t_3 = __Pyx_PyInt_From_enum____pyx_t_7ltfatpy_4comp_5ltfat_dct_kind(__pyx_e_7ltfatpy_4comp_5ltfat_DCTIV); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 107, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
if (PyDict_SetItem(__pyx_t_2, __pyx_int_4, __pyx_t_3) < 0) __PYX_ERR(0, 103, __pyx_L1_error)
if (PyDict_SetItem(__pyx_t_2, __pyx_int_4, __pyx_t_3) < 0) __PYX_ERR(0, 107, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_v_dct_type = ((PyObject*)__pyx_t_2);
__pyx_t_2 = 0;
 
/* "ltfatpy/comp/comp_dct.pyx":105
/* "ltfatpy/comp/comp_dct.pyx":109
* dct_type = {1: DCTI, 2: DCTII, 3: DCTIII, 4: DCTIV}
*
* if f.ndim > 1: # <<<<<<<<<<<<<<
* if f.ndim > 2:
* f = np.squeeze(f, axis=range(2, f.ndim-1))
*/
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_f, __pyx_n_s_ndim); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 105, __pyx_L1_error)
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_f, __pyx_n_s_ndim); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 109, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_3 = PyObject_RichCompare(__pyx_t_2, __pyx_int_1, Py_GT); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 105, __pyx_L1_error)
__pyx_t_3 = PyObject_RichCompare(__pyx_t_2, __pyx_int_1, Py_GT); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 109, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 105, __pyx_L1_error)
__pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 109, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
if (__pyx_t_5) {
 
/* "ltfatpy/comp/comp_dct.pyx":106
/* "ltfatpy/comp/comp_dct.pyx":110
*
* if f.ndim > 1:
* if f.ndim > 2: # <<<<<<<<<<<<<<
* f = np.squeeze(f, axis=range(2, f.ndim-1))
* L = f.shape[0]
*/
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_f, __pyx_n_s_ndim); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 106, __pyx_L1_error)
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_f, __pyx_n_s_ndim); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 110, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_2 = PyObject_RichCompare(__pyx_t_3, __pyx_int_2, Py_GT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 106, __pyx_L1_error)
__pyx_t_2 = PyObject_RichCompare(__pyx_t_3, __pyx_int_2, Py_GT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 110, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 106, __pyx_L1_error)
__pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 110, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
if (__pyx_t_5) {
 
/* "ltfatpy/comp/comp_dct.pyx":107
/* "ltfatpy/comp/comp_dct.pyx":111
* if f.ndim > 1:
* if f.ndim > 2:
* f = np.squeeze(f, axis=range(2, f.ndim-1)) # <<<<<<<<<<<<<<
* L = f.shape[0]
* W = f.shape[1]
*/
__pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 107, __pyx_L1_error)
__pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 111, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_squeeze); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 107, __pyx_L1_error)
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_squeeze); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 111, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 107, __pyx_L1_error)
__pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 111, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_INCREF(__pyx_v_f);
__Pyx_GIVEREF(__pyx_v_f);
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_f);
__pyx_t_4 = PyDict_New(); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 107, __pyx_L1_error)
__pyx_t_4 = PyDict_New(); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 111, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_f, __pyx_n_s_ndim); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 107, __pyx_L1_error)
__pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_f, __pyx_n_s_ndim); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 111, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__pyx_t_7 = __Pyx_PyInt_SubtractObjC(__pyx_t_6, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 107, __pyx_L1_error)
__pyx_t_7 = __Pyx_PyInt_SubtractObjC(__pyx_t_6, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 111, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
__pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 107, __pyx_L1_error)
__pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 111, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_INCREF(__pyx_int_2);
__Pyx_GIVEREF(__pyx_int_2);
......@@ -2158,12 +2158,12 @@ static PyObject *__pyx_f_7ltfatpy_4comp_8comp_dct_comp_dct(PyObject *__pyx_v_f,
__Pyx_GIVEREF(__pyx_t_7);
PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_7);
__pyx_t_7 = 0;
__pyx_t_7 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_6, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 107, __pyx_L1_error)
__pyx_t_7 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_6, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 111, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_axis, __pyx_t_7) < 0) __PYX_ERR(0, 107, __pyx_L1_error)
if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_axis, __pyx_t_7) < 0) __PYX_ERR(0, 111, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
__pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 107, __pyx_L1_error)
__pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 111, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
......@@ -2171,7 +2171,7 @@ static PyObject *__pyx_f_7ltfatpy_4comp_8comp_dct_comp_dct(PyObject *__pyx_v_f,
__Pyx_DECREF_SET(__pyx_v_f, __pyx_t_7);
__pyx_t_7 = 0;
 
/* "ltfatpy/comp/comp_dct.pyx":106
/* "ltfatpy/comp/comp_dct.pyx":110
*
* if f.ndim > 1:
* if f.ndim > 2: # <<<<<<<<<<<<<<
......@@ -2180,58 +2180,58 @@ static PyObject *__pyx_f_7ltfatpy_4comp_8comp_dct_comp_dct(PyObject *__pyx_v_f,
*/
}
 
/* "ltfatpy/comp/comp_dct.pyx":108
/* "ltfatpy/comp/comp_dct.pyx":112
* if f.ndim > 2:
* f = np.squeeze(f, axis=range(2, f.ndim-1))
* L = f.shape[0] # <<<<<<<<<<<<<<
* W = f.shape[1]
* f_combined = f.reshape(L * W, order='F')
*/
__pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_f, __pyx_n_s_shape); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 108, __pyx_L1_error)
__pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_f, __pyx_n_s_shape); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 112, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
__pyx_t_4 = __Pyx_GetItemInt(__pyx_t_7, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 108, __pyx_L1_error)
__pyx_t_4 = __Pyx_GetItemInt(__pyx_t_7, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 112, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
__pyx_t_8 = __Pyx_PyInt_As_size_t(__pyx_t_4); if (unlikely((__pyx_t_8 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 108, __pyx_L1_error)
__pyx_t_8 = __Pyx_PyInt_As_size_t(__pyx_t_4); if (unlikely((__pyx_t_8 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 112, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_v_L = __pyx_t_8;
 
/* "ltfatpy/comp/comp_dct.pyx":109
/* "ltfatpy/comp/comp_dct.pyx":113
* f = np.squeeze(f, axis=range(2, f.ndim-1))
* L = f.shape[0]
* W = f.shape[1] # <<<<<<<<<<<<<<
* f_combined = f.reshape(L * W, order='F')
* else:
*/
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_f, __pyx_n_s_shape); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 109, __pyx_L1_error)
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_f, __pyx_n_s_shape); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 113, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_7 = __Pyx_GetItemInt(__pyx_t_4, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 109, __pyx_L1_error)
__pyx_t_7 = __Pyx_GetItemInt(__pyx_t_4, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 113, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_t_8 = __Pyx_PyInt_As_size_t(__pyx_t_7); if (unlikely((__pyx_t_8 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 109, __pyx_L1_error)
__pyx_t_8 = __Pyx_PyInt_As_size_t(__pyx_t_7); if (unlikely((__pyx_t_8 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 113, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
__pyx_v_W = __pyx_t_8;
 
/* "ltfatpy/comp/comp_dct.pyx":110
/* "ltfatpy/comp/comp_dct.pyx":114
* L = f.shape[0]
* W = f.shape[1]
* f_combined = f.reshape(L * W, order='F') # <<<<<<<<<<<<<<
* else:
* L = f.shape[0]
*/
__pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_f, __pyx_n_s_reshape); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 110, __pyx_L1_error)
__pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_f, __pyx_n_s_reshape); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 114, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
__pyx_t_4 = __Pyx_PyInt_FromSize_t((__pyx_v_L * __pyx_v_W)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 110, __pyx_L1_error)
__pyx_t_4 = __Pyx_PyInt_FromSize_t((__pyx_v_L * __pyx_v_W)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 114, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 110, __pyx_L1_error)
__pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 114, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_GIVEREF(__pyx_t_4);
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4);
__pyx_t_4 = 0;
__pyx_t_4 = PyDict_New(); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 110, __pyx_L1_error)
__pyx_t_4 = PyDict_New(); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 114, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_order, __pyx_n_s_F) < 0) __PYX_ERR(0, 110, __pyx_L1_error)
__pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 110, __pyx_L1_error)
if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_order, __pyx_n_s_F) < 0) __PYX_ERR(0, 114, __pyx_L1_error)
__pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 114, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
......@@ -2239,7 +2239,7 @@ static PyObject *__pyx_f_7ltfatpy_4comp_8comp_dct_comp_dct(PyObject *__pyx_v_f,
__pyx_v_f_combined = __pyx_t_3;
__pyx_t_3 = 0;
 
/* "ltfatpy/comp/comp_dct.pyx":105
/* "ltfatpy/comp/comp_dct.pyx":109
* dct_type = {1: DCTI, 2: DCTII, 3: DCTIII, 4: DCTIV}
*
* if f.ndim > 1: # <<<<<<<<<<<<<<
......@@ -2249,7 +2249,7 @@ static PyObject *__pyx_f_7ltfatpy_4comp_8comp_dct_comp_dct(PyObject *__pyx_v_f,
goto __pyx_L11;
}
 
/* "ltfatpy/comp/comp_dct.pyx":112
/* "ltfatpy/comp/comp_dct.pyx":116
* f_combined = f.reshape(L * W, order='F')
* else:
* L = f.shape[0] # <<<<<<<<<<<<<<
......@@ -2257,16 +2257,16 @@ static PyObject *__pyx_f_7ltfatpy_4comp_8comp_dct_comp_dct(PyObject *__pyx_v_f,
* f_combined = f
*/
/*else*/ {
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_f, __pyx_n_s_shape); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 112, __pyx_L1_error)
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_f, __pyx_n_s_shape); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 116, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = __Pyx_GetItemInt(__pyx_t_3, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 112, __pyx_L1_error)
__pyx_t_4 = __Pyx_GetItemInt(__pyx_t_3, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 116, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_8 = __Pyx_PyInt_As_size_t(__pyx_t_4); if (unlikely((__pyx_t_8 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 112, __pyx_L1_error)
__pyx_t_8 = __Pyx_PyInt_As_size_t(__pyx_t_4); if (unlikely((__pyx_t_8 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 116, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_v_L = __pyx_t_8;
 
/* "ltfatpy/comp/comp_dct.pyx":113
/* "ltfatpy/comp/comp_dct.pyx":117
* else:
* L = f.shape[0]
* W = 1 # <<<<<<<<<<<<<<
......@@ -2275,7 +2275,7 @@ static PyObject *__pyx_f_7ltfatpy_4comp_8comp_dct_comp_dct(PyObject *__pyx_v_f,
*/
__pyx_v_W = 1;
 
/* "ltfatpy/comp/comp_dct.pyx":114
/* "ltfatpy/comp/comp_dct.pyx":118
* L = f.shape[0]
* W = 1
* f_combined = f # <<<<<<<<<<<<<<
......@@ -2287,59 +2287,59 @@ static PyObject *__pyx_f_7ltfatpy_4comp_8comp_dct_comp_dct(PyObject *__pyx_v_f,
}
__pyx_L11:;
 
/* "ltfatpy/comp/comp_dct.pyx":116
/* "ltfatpy/comp/comp_dct.pyx":120
* f_combined = f
*
* if f.dtype.type == np.float64: # <<<<<<<<<<<<<<
* res = np.ndarray((L * W), dtype=np.float64)
* comp_dct_d(f_combined, L, W, dct_type[type], res)
*/
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_f, __pyx_n_s_dtype); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 116, __pyx_L1_error)
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_f, __pyx_n_s_dtype); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 120, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_type); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 116, __pyx_L1_error)
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_type); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 120, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 116, __pyx_L1_error)
__pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 120, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_float64); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 116, __pyx_L1_error)
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_float64); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 120, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_t_4 = PyObject_RichCompare(__pyx_t_3, __pyx_t_2, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 116, __pyx_L1_error)
__pyx_t_4 = PyObject_RichCompare(__pyx_t_3, __pyx_t_2, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 120, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 116, __pyx_L1_error)
__pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 120, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
if (__pyx_t_5) {
 
/* "ltfatpy/comp/comp_dct.pyx":117
/* "ltfatpy/comp/comp_dct.pyx":121
*
* if f.dtype.type == np.float64:
* res = np.ndarray((L * W), dtype=np.float64) # <<<<<<<<<<<<<<
* comp_dct_d(f_combined, L, W, dct_type[type], res)
* else:
*/
__pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 117, __pyx_L1_error)
__pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 121, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_ndarray); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 117, __pyx_L1_error)
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_ndarray); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 121, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_t_4 = __Pyx_PyInt_FromSize_t((__pyx_v_L * __pyx_v_W)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 117, __pyx_L1_error)
__pyx_t_4 = __Pyx_PyInt_FromSize_t((__pyx_v_L * __pyx_v_W)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 121, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 117, __pyx_L1_error)
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 121, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_GIVEREF(__pyx_t_4);
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
__pyx_t_4 = 0;
__pyx_t_4 = PyDict_New(); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 117, __pyx_L1_error)
__pyx_t_4 = PyDict_New(); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 121, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 117, __pyx_L1_error)
__pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 121, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
__pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_float64); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 117, __pyx_L1_error)
__pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_float64); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 121, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_dtype, __pyx_t_6) < 0) __PYX_ERR(0, 117, __pyx_L1_error)
if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_dtype, __pyx_t_6) < 0) __PYX_ERR(0, 121, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
__pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 117, __pyx_L1_error)
__pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 121, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
......@@ -2347,7 +2347,7 @@ static PyObject *__pyx_f_7ltfatpy_4comp_8comp_dct_comp_dct(PyObject *__pyx_v_f,
__pyx_v_res = __pyx_t_6;
__pyx_t_6 = 0;
 
/* "ltfatpy/comp/comp_dct.pyx":118
/* "ltfatpy/comp/comp_dct.pyx":122
* if f.dtype.type == np.float64:
* res = np.ndarray((L * W), dtype=np.float64)
* comp_dct_d(f_combined, L, W, dct_type[type], res) # <<<<<<<<<<<<<<
......@@ -2355,14 +2355,14 @@ static PyObject *__pyx_f_7ltfatpy_4comp_8comp_dct_comp_dct(PyObject *__pyx_v_f,
* res = np.ndarray((L * W), dtype=np.complex128)
*/
__pyx_t_9 = __Pyx_PyObject_to_MemoryviewSlice_ds_double(__pyx_v_f_combined);
if (unlikely(!__pyx_t_9.memview)) __PYX_ERR(0, 118, __pyx_L1_error)
__pyx_t_6 = __Pyx_PyDict_GetItem(__pyx_v_dct_type, __pyx_v_type); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 118, __pyx_L1_error)
if (unlikely(!__pyx_t_9.memview)) __PYX_ERR(0, 122, __pyx_L1_error)
__pyx_t_6 = __Pyx_PyDict_GetItem(__pyx_v_dct_type, __pyx_v_type); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 122, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__pyx_t_10 = ((enum __pyx_t_7ltfatpy_4comp_5ltfat_dct_kind)__Pyx_PyInt_As_enum____pyx_t_7ltfatpy_4comp_5ltfat_dct_kind(__pyx_t_6)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 118, __pyx_L1_error)
__pyx_t_10 = ((enum __pyx_t_7ltfatpy_4comp_5ltfat_dct_kind)__Pyx_PyInt_As_enum____pyx_t_7ltfatpy_4comp_5ltfat_dct_kind(__pyx_t_6)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 122, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
__pyx_t_11 = __Pyx_PyObject_to_MemoryviewSlice_ds_double(__pyx_v_res);
if (unlikely(!__pyx_t_11.memview)) __PYX_ERR(0, 118, __pyx_L1_error)
__pyx_t_6 = __pyx_f_7ltfatpy_4comp_8comp_dct_comp_dct_d(__pyx_t_9, __pyx_v_L, __pyx_v_W, __pyx_t_10, __pyx_t_11); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 118, __pyx_L1_error)
if (unlikely(!__pyx_t_11.memview)) __PYX_ERR(0, 122, __pyx_L1_error)
__pyx_t_6 = __pyx_f_7ltfatpy_4comp_8comp_dct_comp_dct_d(__pyx_t_9, __pyx_v_L, __pyx_v_W, __pyx_t_10, __pyx_t_11); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 122, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__PYX_XDEC_MEMVIEW(&__pyx_t_9, 1);
__pyx_t_9.memview = NULL;
......@@ -2372,7 +2372,7 @@ static PyObject *__pyx_f_7ltfatpy_4comp_8comp_dct_comp_dct(PyObject *__pyx_v_f,
__pyx_t_11.data = NULL;
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
 
/* "ltfatpy/comp/comp_dct.pyx":116
/* "ltfatpy/comp/comp_dct.pyx":120
* f_combined = f
*
* if f.dtype.type == np.float64: # <<<<<<<<<<<<<<
......@@ -2382,7 +2382,7 @@ static PyObject *__pyx_f_7ltfatpy_4comp_8comp_dct_comp_dct(PyObject *__pyx_v_f,
goto __pyx_L13;
}
 
/* "ltfatpy/comp/comp_dct.pyx":120
/* "ltfatpy/comp/comp_dct.pyx":124
* comp_dct_d(f_combined, L, W, dct_type[type], res)
* else:
* res = np.ndarray((L * W), dtype=np.complex128) # <<<<<<<<<<<<<<
......@@ -2390,28 +2390,28 @@ static PyObject *__pyx_f_7ltfatpy_4comp_8comp_dct_comp_dct(PyObject *__pyx_v_f,
* if W > 1:
*/
/*else*/ {
__pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 120, __pyx_L1_error)
__pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 124, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_ndarray); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 120, __pyx_L1_error)
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_ndarray); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 124, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
__pyx_t_6 = __Pyx_PyInt_FromSize_t((__pyx_v_L * __pyx_v_W)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 120, __pyx_L1_error)
__pyx_t_6 = __Pyx_PyInt_FromSize_t((__pyx_v_L * __pyx_v_W)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 124, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 120, __pyx_L1_error)
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 124, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_GIVEREF(__pyx_t_6);
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_6);
__pyx_t_6 = 0;
__pyx_t_6 = PyDict_New(); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 120, __pyx_L1_error)
__pyx_t_6 = PyDict_New(); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 124, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 120, __pyx_L1_error)
__pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 124, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_complex128); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 120, __pyx_L1_error)
__pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_complex128); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 124, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_dtype, __pyx_t_7) < 0) __PYX_ERR(0, 120, __pyx_L1_error)
if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_dtype, __pyx_t_7) < 0) __PYX_ERR(0, 124, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
__pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 120, __pyx_L1_error)
__pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 124, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
......@@ -2419,7 +2419,7 @@ static PyObject *__pyx_f_7ltfatpy_4comp_8comp_dct_comp_dct(PyObject *__pyx_v_f,
__pyx_v_res = __pyx_t_7;
__pyx_t_7 = 0;
 
/* "ltfatpy/comp/comp_dct.pyx":121
/* "ltfatpy/comp/comp_dct.pyx":125
* else:
* res = np.ndarray((L * W), dtype=np.complex128)
* comp_dct_cd(f_combined, L, W, dct_type[type], res) # <<<<<<<<<<<<<<
......@@ -2427,14 +2427,14 @@ static PyObject *__pyx_f_7ltfatpy_4comp_8comp_dct_comp_dct(PyObject *__pyx_v_f,
* res = np.reshape(res, (L, W), order='F')
*/
__pyx_t_12 = __Pyx_PyObject_to_MemoryviewSlice_ds___pyx_t_double_complex(__pyx_v_f_combined);
if (unlikely(!__pyx_t_12.memview)) __PYX_ERR(0, 121, __pyx_L1_error)
__pyx_t_7 = __Pyx_PyDict_GetItem(__pyx_v_dct_type, __pyx_v_type); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 121, __pyx_L1_error)
if (unlikely(!__pyx_t_12.memview)) __PYX_ERR(0, 125, __pyx_L1_error)
__pyx_t_7 = __Pyx_PyDict_GetItem(__pyx_v_dct_type, __pyx_v_type); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 125, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
__pyx_t_10 = ((enum __pyx_t_7ltfatpy_4comp_5ltfat_dct_kind)__Pyx_PyInt_As_enum____pyx_t_7ltfatpy_4comp_5ltfat_dct_kind(__pyx_t_7)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 121, __pyx_L1_error)
__pyx_t_10 = ((enum __pyx_t_7ltfatpy_4comp_5ltfat_dct_kind)__Pyx_PyInt_As_enum____pyx_t_7ltfatpy_4comp_5ltfat_dct_kind(__pyx_t_7)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 125, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
__pyx_t_13 = __Pyx_PyObject_to_MemoryviewSlice_ds___pyx_t_double_complex(__pyx_v_res);
if (unlikely(!__pyx_t_13.memview)) __PYX_ERR(0, 121, __pyx_L1_error)
__pyx_t_7 = __pyx_f_7ltfatpy_4comp_8comp_dct_comp_dct_cd(__pyx_t_12, __pyx_v_L, __pyx_v_W, __pyx_t_10, __pyx_t_13); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 121, __pyx_L1_error)
if (unlikely(!__pyx_t_13.memview)) __PYX_ERR(0, 125, __pyx_L1_error)
__pyx_t_7 = __pyx_f_7ltfatpy_4comp_8comp_dct_comp_dct_cd(__pyx_t_12, __pyx_v_L, __pyx_v_W, __pyx_t_10, __pyx_t_13); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 125, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
__PYX_XDEC_MEMVIEW(&__pyx_t_12, 1);
__pyx_t_12.memview = NULL;
......@@ -2446,7 +2446,7 @@ static PyObject *__pyx_f_7ltfatpy_4comp_8comp_dct_comp_dct(PyObject *__pyx_v_f,
}
__pyx_L13:;
 
/* "ltfatpy/comp/comp_dct.pyx":122
/* "ltfatpy/comp/comp_dct.pyx":126
* res = np.ndarray((L * W), dtype=np.complex128)
* comp_dct_cd(f_combined, L, W, dct_type[type], res)
* if W > 1: # <<<<<<<<<<<<<<
......@@ -2456,22 +2456,22 @@ static PyObject *__pyx_f_7ltfatpy_4comp_8comp_dct_comp_dct(PyObject *__pyx_v_f,
__pyx_t_5 = ((__pyx_v_W > 1) != 0);
if (__pyx_t_5) {
 
/* "ltfatpy/comp/comp_dct.pyx":123
/* "ltfatpy/comp/comp_dct.pyx":127
* comp_dct_cd(f_combined, L, W, dct_type[type], res)
* if W > 1:
* res = np.reshape(res, (L, W), order='F') # <<<<<<<<<<<<<<
* return res
*/
__pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 123, __pyx_L1_error)
__pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 127, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
__pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_reshape); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 123, __pyx_L1_error)
__pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_reshape); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 127, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
__pyx_t_7 = __Pyx_PyInt_FromSize_t(__pyx_v_L); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 123, __pyx_L1_error)
__pyx_t_7 = __Pyx_PyInt_FromSize_t(__pyx_v_L); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 127, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
__pyx_t_3 = __Pyx_PyInt_FromSize_t(__pyx_v_W); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 123, __pyx_L1_error)
__pyx_t_3 = __Pyx_PyInt_FromSize_t(__pyx_v_W); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 127, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 123, __pyx_L1_error)
__pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 127, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_GIVEREF(__pyx_t_7);
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_7);
......@@ -2479,7 +2479,7 @@ static PyObject *__pyx_f_7ltfatpy_4comp_8comp_dct_comp_dct(PyObject *__pyx_v_f,
PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3);
__pyx_t_7 = 0;
__pyx_t_3 = 0;
__pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 123, __pyx_L1_error)
__pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 127, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_INCREF(__pyx_v_res);
__Pyx_GIVEREF(__pyx_v_res);
......@@ -2487,10 +2487,10 @@ static PyObject *__pyx_f_7ltfatpy_4comp_8comp_dct_comp_dct(PyObject *__pyx_v_f,
__Pyx_GIVEREF(__pyx_t_4);
PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_4);
__pyx_t_4 = 0;
__pyx_t_4 = PyDict_New(); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 123, __pyx_L1_error)
__pyx_t_4 = PyDict_New(); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 127, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_order, __pyx_n_s_F) < 0) __PYX_ERR(0, 123, __pyx_L1_error)
__pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 123, __pyx_L1_error)
if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_order, __pyx_n_s_F) < 0) __PYX_ERR(0, 127, __pyx_L1_error)
__pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 127, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
......@@ -2498,7 +2498,7 @@ static PyObject *__pyx_f_7ltfatpy_4comp_8comp_dct_comp_dct(PyObject *__pyx_v_f,
__Pyx_DECREF_SET(__pyx_v_res, __pyx_t_7);
__pyx_t_7 = 0;
 
/* "ltfatpy/comp/comp_dct.pyx":122
/* "ltfatpy/comp/comp_dct.pyx":126
* res = np.ndarray((L * W), dtype=np.complex128)
* comp_dct_cd(f_combined, L, W, dct_type[type], res)
* if W > 1: # <<<<<<<<<<<<<<
......@@ -2507,7 +2507,7 @@ static PyObject *__pyx_f_7ltfatpy_4comp_8comp_dct_comp_dct(PyObject *__pyx_v_f,
*/
}
 
/* "ltfatpy/comp/comp_dct.pyx":124
/* "ltfatpy/comp/comp_dct.pyx":128
* if W > 1:
* res = np.reshape(res, (L, W), order='F')
* return res # <<<<<<<<<<<<<<
......@@ -2517,7 +2517,7 @@ static PyObject *__pyx_f_7ltfatpy_4comp_8comp_dct_comp_dct(PyObject *__pyx_v_f,
__pyx_r = __pyx_v_res;
goto __pyx_L0;
 
/* "ltfatpy/comp/comp_dct.pyx":89
/* "ltfatpy/comp/comp_dct.pyx":93
* # assume no negative indexing.
* @cython.wraparound(False)
* cpdef comp_dct(f, type): # <<<<<<<<<<<<<<
......@@ -2577,11 +2577,11 @@ static PyObject *__pyx_pw_7ltfatpy_4comp_8comp_dct_1comp_dct(PyObject *__pyx_sel
case 1:
if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_type)) != 0)) kw_args--;
else {
__Pyx_RaiseArgtupleInvalid("comp_dct", 1, 2, 2, 1); __PYX_ERR(0, 89, __pyx_L3_error)
__Pyx_RaiseArgtupleInvalid("comp_dct", 1, 2, 2, 1); __PYX_ERR(0, 93, __pyx_L3_error)
}
}
if (unlikely(kw_args > 0)) {
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "comp_dct") < 0)) __PYX_ERR(0, 89, __pyx_L3_error)
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "comp_dct") < 0)) __PYX_ERR(0, 93, __pyx_L3_error)
}
} else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
goto __pyx_L5_argtuple_error;
......@@ -2594,7 +2594,7 @@ static PyObject *__pyx_pw_7ltfatpy_4comp_8comp_dct_1comp_dct(PyObject *__pyx_sel
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
__Pyx_RaiseArgtupleInvalid("comp_dct", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 89, __pyx_L3_error)
__Pyx_RaiseArgtupleInvalid("comp_dct", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 93, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("ltfatpy.comp.comp_dct.comp_dct", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
......@@ -2613,7 +2613,7 @@ static PyObject *__pyx_pf_7ltfatpy_4comp_8comp_dct_comp_dct(CYTHON_UNUSED PyObje
PyObject *__pyx_t_1 = NULL;
__Pyx_RefNannySetupContext("comp_dct", 0);
__Pyx_XDECREF(__pyx_r);
__pyx_t_1 = __pyx_f_7ltfatpy_4comp_8comp_dct_comp_dct(__pyx_v_f, __pyx_v_type, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 89, __pyx_L1_error)
__pyx_t_1 = __pyx_f_7ltfatpy_4comp_8comp_dct_comp_dct(__pyx_v_f, __pyx_v_type, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 93, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
......@@ -15053,8 +15053,8 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = {
{0, 0, 0, 0, 0, 0, 0}
};
static int __Pyx_InitCachedBuiltins(void) {
__pyx_builtin_TypeError = __Pyx_GetBuiltinName(__pyx_n_s_TypeError); if (!__pyx_builtin_TypeError) __PYX_ERR(0, 99, __pyx_L1_error)
__pyx_builtin_range = __Pyx_GetBuiltinName(__pyx_n_s_range); if (!__pyx_builtin_range) __PYX_ERR(0, 107, __pyx_L1_error)
__pyx_builtin_TypeError = __Pyx_GetBuiltinName(__pyx_n_s_TypeError); if (!__pyx_builtin_TypeError) __PYX_ERR(0, 103, __pyx_L1_error)
__pyx_builtin_range = __Pyx_GetBuiltinName(__pyx_n_s_range); if (!__pyx_builtin_range) __PYX_ERR(0, 111, __pyx_L1_error)
__pyx_builtin_ValueError = __Pyx_GetBuiltinName(__pyx_n_s_ValueError); if (!__pyx_builtin_ValueError) __PYX_ERR(1, 131, __pyx_L1_error)
__pyx_builtin_MemoryError = __Pyx_GetBuiltinName(__pyx_n_s_MemoryError); if (!__pyx_builtin_MemoryError) __PYX_ERR(1, 146, __pyx_L1_error)
__pyx_builtin_enumerate = __Pyx_GetBuiltinName(__pyx_n_s_enumerate); if (!__pyx_builtin_enumerate) __PYX_ERR(1, 149, __pyx_L1_error)
......@@ -15070,25 +15070,25 @@ static int __Pyx_InitCachedConstants(void) {
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0);
 
/* "ltfatpy/comp/comp_dct.pyx":99
/* "ltfatpy/comp/comp_dct.pyx":103
* cdef ltfatInt L, W
* if (f.dtype.type != np.float64) and (f.dtype.type != np.complex128):
* raise TypeError("f data should be numpy.float64 or complex128") # <<<<<<<<<<<<<<
* if type not in {1, 2, 3, 4}:
* raise TypeError("type should be 1, 2, 3 or 4")
*/
__pyx_tuple_ = PyTuple_Pack(1, __pyx_kp_s_f_data_should_be_numpy_float64_o); if (unlikely(!__pyx_tuple_)) __PYX_ERR(0, 99, __pyx_L1_error)
__pyx_tuple_ = PyTuple_Pack(1, __pyx_kp_s_f_data_should_be_numpy_float64_o); if (unlikely(!__pyx_tuple_)) __PYX_ERR(0, 103, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple_);
__Pyx_GIVEREF(__pyx_tuple_);
 
/* "ltfatpy/comp/comp_dct.pyx":101
/* "ltfatpy/comp/comp_dct.pyx":105
* raise TypeError("f data should be numpy.float64 or complex128")
* if type not in {1, 2, 3, 4}:
* raise TypeError("type should be 1, 2, 3 or 4") # <<<<<<<<<<<<<<
*
* dct_type = {1: DCTI, 2: DCTII, 3: DCTIII, 4: DCTIV}
*/
__pyx_tuple__2 = PyTuple_Pack(1, __pyx_kp_s_type_should_be_1_2_3_or_4); if (unlikely(!__pyx_tuple__2)) __PYX_ERR(0, 101, __pyx_L1_error)
__pyx_tuple__2 = PyTuple_Pack(1, __pyx_kp_s_type_should_be_1_2_3_or_4); if (unlikely(!__pyx_tuple__2)) __PYX_ERR(0, 105, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__2);
__Pyx_GIVEREF(__pyx_tuple__2);
 
......@@ -15440,22 +15440,22 @@ PyMODINIT_FUNC PyInit_comp_dct(void)
if (__Pyx_patch_abc() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
#endif
 
/* "ltfatpy/comp/comp_dct.pyx":61
/* "ltfatpy/comp/comp_dct.pyx":65
* from __future__ import print_function, division
* import cython
* import numpy as np # <<<<<<<<<<<<<<
*
* from ltfat cimport ltfatInt, dct_kind, dct_cd, dct_d
*/
__pyx_t_1 = __Pyx_Import(__pyx_n_s_numpy, 0, -1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 61, __pyx_L1_error)
__pyx_t_1 = __Pyx_Import(__pyx_n_s_numpy, 0, -1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 65, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_np, __pyx_t_1) < 0) __PYX_ERR(0, 61, __pyx_L1_error)
if (PyDict_SetItem(__pyx_d, __pyx_n_s_np, __pyx_t_1) < 0) __PYX_ERR(0, 65, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
/* "ltfatpy/comp/comp_dct.pyx":1
* # -*- coding: utf-8 -*- # <<<<<<<<<<<<<<
* # ######### COPYRIGHT #########
* #
* # Credits
*/
__pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -750,7 +750,7 @@ typedef volatile __pyx_atomic_int_type __pyx_atomic_int;
#endif
 
 
/* "ltfat.pxd":57
/* "ltfat.pxd":61
* TIMEINV = 1
*
* ctypedef size_t ltfatInt # <<<<<<<<<<<<<<
......@@ -777,7 +777,7 @@ struct __pyx_MemviewEnum_obj;
struct __pyx_memoryview_obj;
struct __pyx_memoryviewslice_obj;
 
/* "ltfat.pxd":53
/* "ltfat.pxd":57
*
*
* cdef enum dgt_phasetype: # <<<<<<<<<<<<<<
......@@ -789,7 +789,7 @@ enum __pyx_t_7ltfatpy_4comp_5ltfat_dgt_phasetype {
__pyx_e_7ltfatpy_4comp_5ltfat_TIMEINV = 1
};
 
/* "ltfat.pxd":60
/* "ltfat.pxd":64
*
* # Values extracted from fftw3.h
* cdef enum dct_kind: # <<<<<<<<<<<<<<
......@@ -803,7 +803,7 @@ enum __pyx_t_7ltfatpy_4comp_5ltfat_dct_kind {
__pyx_e_7ltfatpy_4comp_5ltfat_DCTIV = 6
};
 
/* "ltfat.pxd":67
/* "ltfat.pxd":71
*
* # Values extracted from fftw3.h
* cdef enum dst_kind: # <<<<<<<<<<<<<<
......@@ -818,7 +818,7 @@ enum __pyx_t_7ltfatpy_4comp_5ltfat_dst_kind {
};
struct __pyx_opt_args_7ltfatpy_4comp_11comp_pgauss_comp_pgauss;
 
/* "ltfatpy/comp/comp_pgauss.pyx":86
/* "ltfatpy/comp/comp_pgauss.pyx":90
* pgauss_cmplx_d(L, w, c_t, c_f, & out[0])
*
* cpdef comp_pgauss(L, w=1.0, c_t=0, c_f=0): # <<<<<<<<<<<<<<
......@@ -1799,7 +1799,7 @@ static PyObject *__pyx_tuple__16;
static PyObject *__pyx_tuple__17;
static PyObject *__pyx_tuple__18;
 
/* "ltfatpy/comp/comp_pgauss.pyx":72
/* "ltfatpy/comp/comp_pgauss.pyx":76
* # assume no negative indexing.
* @cython.wraparound(False)
* cdef comp_pgauss_real(ltfatInt L, double w, double c_t, # <<<<<<<<<<<<<<
......@@ -1813,7 +1813,7 @@ static PyObject *__pyx_f_7ltfatpy_4comp_11comp_pgauss_comp_pgauss_real(__pyx_t_7
Py_ssize_t __pyx_t_1;
__Pyx_RefNannySetupContext("comp_pgauss_real", 0);
 
/* "ltfatpy/comp/comp_pgauss.pyx":75
/* "ltfatpy/comp/comp_pgauss.pyx":79
* double[:] out):
* """ Internal function, do not use it """
* pgauss_d(L, w, c_t, & out[0]) # <<<<<<<<<<<<<<
......@@ -1823,7 +1823,7 @@ static PyObject *__pyx_f_7ltfatpy_4comp_11comp_pgauss_comp_pgauss_real(__pyx_t_7
__pyx_t_1 = 0;
pgauss_d(__pyx_v_L, __pyx_v_w, __pyx_v_c_t, (&(*((double *) ( /* dim=0 */ (__pyx_v_out.data + __pyx_t_1 * __pyx_v_out.strides[0]) )))));
 
/* "ltfatpy/comp/comp_pgauss.pyx":72
/* "ltfatpy/comp/comp_pgauss.pyx":76
* # assume no negative indexing.
* @cython.wraparound(False)
* cdef comp_pgauss_real(ltfatInt L, double w, double c_t, # <<<<<<<<<<<<<<
......@@ -1838,7 +1838,7 @@ static PyObject *__pyx_f_7ltfatpy_4comp_11comp_pgauss_comp_pgauss_real(__pyx_t_7
return __pyx_r;
}
 
/* "ltfatpy/comp/comp_pgauss.pyx":81
/* "ltfatpy/comp/comp_pgauss.pyx":85
* # assume no negative indexing.
* @cython.wraparound(False)
* cdef comp_pgauss_cplx(ltfatInt L, double w, double c_t, # <<<<<<<<<<<<<<
......@@ -1852,7 +1852,7 @@ static PyObject *__pyx_f_7ltfatpy_4comp_11comp_pgauss_comp_pgauss_cplx(__pyx_t_7
Py_ssize_t __pyx_t_1;
__Pyx_RefNannySetupContext("comp_pgauss_cplx", 0);
 
/* "ltfatpy/comp/comp_pgauss.pyx":84
/* "ltfatpy/comp/comp_pgauss.pyx":88
* double c_f, double complex[:] out):
* """ Internal function, do not use it """
* pgauss_cmplx_d(L, w, c_t, c_f, & out[0]) # <<<<<<<<<<<<<<
......@@ -1862,7 +1862,7 @@ static PyObject *__pyx_f_7ltfatpy_4comp_11comp_pgauss_comp_pgauss_cplx(__pyx_t_7
__pyx_t_1 = 0;
pgauss_cmplx_d(__pyx_v_L, __pyx_v_w, __pyx_v_c_t, __pyx_v_c_f, (&(*((__pyx_t_double_complex *) ( /* dim=0 */ (__pyx_v_out.data + __pyx_t_1 * __pyx_v_out.strides[0]) )))));
 
/* "ltfatpy/comp/comp_pgauss.pyx":81
/* "ltfatpy/comp/comp_pgauss.pyx":85
* # assume no negative indexing.
* @cython.wraparound(False)
* cdef comp_pgauss_cplx(ltfatInt L, double w, double c_t, # <<<<<<<<<<<<<<
......@@ -1877,7 +1877,7 @@ static PyObject *__pyx_f_7ltfatpy_4comp_11comp_pgauss_comp_pgauss_cplx(__pyx_t_7
return __pyx_r;
}
 
/* "ltfatpy/comp/comp_pgauss.pyx":86
/* "ltfatpy/comp/comp_pgauss.pyx":90
* pgauss_cmplx_d(L, w, c_t, c_f, & out[0])
*
* cpdef comp_pgauss(L, w=1.0, c_t=0, c_f=0): # <<<<<<<<<<<<<<
......@@ -1918,46 +1918,46 @@ static PyObject *__pyx_f_7ltfatpy_4comp_11comp_pgauss_comp_pgauss(PyObject *__py
}
}
 
/* "ltfatpy/comp/comp_pgauss.pyx":92
/* "ltfatpy/comp/comp_pgauss.pyx":96
* :func:`~ltfatpy.fourier.pgauss.pgauss` instead.
* """
* if c_f == 0: # <<<<<<<<<<<<<<
* out = np.ndarray((L), dtype=np.float64)
* comp_pgauss_real(L, w, c_t, out)
*/
__pyx_t_1 = __Pyx_PyInt_EqObjC(__pyx_v_c_f, __pyx_int_0, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 92, __pyx_L1_error)
__pyx_t_1 = __Pyx_PyInt_EqObjC(__pyx_v_c_f, __pyx_int_0, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 96, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 92, __pyx_L1_error)
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 96, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
if (__pyx_t_2) {
 
/* "ltfatpy/comp/comp_pgauss.pyx":93
/* "ltfatpy/comp/comp_pgauss.pyx":97
* """
* if c_f == 0:
* out = np.ndarray((L), dtype=np.float64) # <<<<<<<<<<<<<<
* comp_pgauss_real(L, w, c_t, out)
* return out
*/
__pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 93, __pyx_L1_error)
__pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 97, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_ndarray); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 93, __pyx_L1_error)
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_ndarray); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 97, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 93, __pyx_L1_error)
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 97, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_INCREF(__pyx_v_L);
__Pyx_GIVEREF(__pyx_v_L);
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_L);
__pyx_t_4 = PyDict_New(); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 93, __pyx_L1_error)
__pyx_t_4 = PyDict_New(); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 97, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 93, __pyx_L1_error)
__pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 97, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_float64); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 93, __pyx_L1_error)
__pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_float64); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 97, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_dtype, __pyx_t_6) < 0) __PYX_ERR(0, 93, __pyx_L1_error)
if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_dtype, __pyx_t_6) < 0) __PYX_ERR(0, 97, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
__pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 93, __pyx_L1_error)
__pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 97, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
......@@ -1965,26 +1965,26 @@ static PyObject *__pyx_f_7ltfatpy_4comp_11comp_pgauss_comp_pgauss(PyObject *__py
__pyx_v_out = __pyx_t_6;
__pyx_t_6 = 0;
 
/* "ltfatpy/comp/comp_pgauss.pyx":94
/* "ltfatpy/comp/comp_pgauss.pyx":98
* if c_f == 0:
* out = np.ndarray((L), dtype=np.float64)
* comp_pgauss_real(L, w, c_t, out) # <<<<<<<<<<<<<<
* return out
* out = np.ndarray((L), dtype=np.complex128)
*/
__pyx_t_7 = __Pyx_PyInt_As_size_t(__pyx_v_L); if (unlikely((__pyx_t_7 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 94, __pyx_L1_error)
__pyx_t_8 = __pyx_PyFloat_AsDouble(__pyx_v_w); if (unlikely((__pyx_t_8 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 94, __pyx_L1_error)
__pyx_t_9 = __pyx_PyFloat_AsDouble(__pyx_v_c_t); if (unlikely((__pyx_t_9 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 94, __pyx_L1_error)
__pyx_t_7 = __Pyx_PyInt_As_size_t(__pyx_v_L); if (unlikely((__pyx_t_7 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 98, __pyx_L1_error)
__pyx_t_8 = __pyx_PyFloat_AsDouble(__pyx_v_w); if (unlikely((__pyx_t_8 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 98, __pyx_L1_error)
__pyx_t_9 = __pyx_PyFloat_AsDouble(__pyx_v_c_t); if (unlikely((__pyx_t_9 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 98, __pyx_L1_error)
__pyx_t_10 = __Pyx_PyObject_to_MemoryviewSlice_ds_double(__pyx_v_out);
if (unlikely(!__pyx_t_10.memview)) __PYX_ERR(0, 94, __pyx_L1_error)
__pyx_t_6 = __pyx_f_7ltfatpy_4comp_11comp_pgauss_comp_pgauss_real(__pyx_t_7, __pyx_t_8, __pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 94, __pyx_L1_error)
if (unlikely(!__pyx_t_10.memview)) __PYX_ERR(0, 98, __pyx_L1_error)
__pyx_t_6 = __pyx_f_7ltfatpy_4comp_11comp_pgauss_comp_pgauss_real(__pyx_t_7, __pyx_t_8, __pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 98, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__PYX_XDEC_MEMVIEW(&__pyx_t_10, 1);
__pyx_t_10.memview = NULL;
__pyx_t_10.data = NULL;
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
 
/* "ltfatpy/comp/comp_pgauss.pyx":95
/* "ltfatpy/comp/comp_pgauss.pyx":99
* out = np.ndarray((L), dtype=np.float64)
* comp_pgauss_real(L, w, c_t, out)
* return out # <<<<<<<<<<<<<<
......@@ -1996,7 +1996,7 @@ static PyObject *__pyx_f_7ltfatpy_4comp_11comp_pgauss_comp_pgauss(PyObject *__py
__pyx_r = __pyx_v_out;
goto __pyx_L0;
 
/* "ltfatpy/comp/comp_pgauss.pyx":92
/* "ltfatpy/comp/comp_pgauss.pyx":96
* :func:`~ltfatpy.fourier.pgauss.pgauss` instead.
* """
* if c_f == 0: # <<<<<<<<<<<<<<
......@@ -2005,33 +2005,33 @@ static PyObject *__pyx_f_7ltfatpy_4comp_11comp_pgauss_comp_pgauss(PyObject *__py
*/
}
 
/* "ltfatpy/comp/comp_pgauss.pyx":96
/* "ltfatpy/comp/comp_pgauss.pyx":100
* comp_pgauss_real(L, w, c_t, out)
* return out
* out = np.ndarray((L), dtype=np.complex128) # <<<<<<<<<<<<<<
* comp_pgauss_cplx(L, w, c_t, c_f, out)
* return out
*/
__pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 96, __pyx_L1_error)
__pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 100, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_ndarray); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 96, __pyx_L1_error)
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_ndarray); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 100, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
__pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 96, __pyx_L1_error)
__pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 100, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_INCREF(__pyx_v_L);
__Pyx_GIVEREF(__pyx_v_L);
PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_L);
__pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 96, __pyx_L1_error)
__pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 100, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 96, __pyx_L1_error)
__pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 100, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_complex128); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 96, __pyx_L1_error)
__pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_complex128); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 100, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_dtype, __pyx_t_5) < 0) __PYX_ERR(0, 96, __pyx_L1_error)
if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_dtype, __pyx_t_5) < 0) __PYX_ERR(0, 100, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_6, __pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 96, __pyx_L1_error)
__pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_6, __pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 100, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
......@@ -2039,26 +2039,26 @@ static PyObject *__pyx_f_7ltfatpy_4comp_11comp_pgauss_comp_pgauss(PyObject *__py
__pyx_v_out = __pyx_t_5;
__pyx_t_5 = 0;
 
/* "ltfatpy/comp/comp_pgauss.pyx":97
/* "ltfatpy/comp/comp_pgauss.pyx":101
* return out
* out = np.ndarray((L), dtype=np.complex128)
* comp_pgauss_cplx(L, w, c_t, c_f, out) # <<<<<<<<<<<<<<
* return out
*/
__pyx_t_7 = __Pyx_PyInt_As_size_t(__pyx_v_L); if (unlikely((__pyx_t_7 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 97, __pyx_L1_error)
__pyx_t_9 = __pyx_PyFloat_AsDouble(__pyx_v_w); if (unlikely((__pyx_t_9 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 97, __pyx_L1_error)
__pyx_t_8 = __pyx_PyFloat_AsDouble(__pyx_v_c_t); if (unlikely((__pyx_t_8 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 97, __pyx_L1_error)
__pyx_t_11 = __pyx_PyFloat_AsDouble(__pyx_v_c_f); if (unlikely((__pyx_t_11 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 97, __pyx_L1_error)
__pyx_t_7 = __Pyx_PyInt_As_size_t(__pyx_v_L); if (unlikely((__pyx_t_7 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 101, __pyx_L1_error)
__pyx_t_9 = __pyx_PyFloat_AsDouble(__pyx_v_w); if (unlikely((__pyx_t_9 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 101, __pyx_L1_error)
__pyx_t_8 = __pyx_PyFloat_AsDouble(__pyx_v_c_t); if (unlikely((__pyx_t_8 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 101, __pyx_L1_error)
__pyx_t_11 = __pyx_PyFloat_AsDouble(__pyx_v_c_f); if (unlikely((__pyx_t_11 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 101, __pyx_L1_error)
__pyx_t_12 = __Pyx_PyObject_to_MemoryviewSlice_ds___pyx_t_double_complex(__pyx_v_out);
if (unlikely(!__pyx_t_12.memview)) __PYX_ERR(0, 97, __pyx_L1_error)
__pyx_t_5 = __pyx_f_7ltfatpy_4comp_11comp_pgauss_comp_pgauss_cplx(__pyx_t_7, __pyx_t_9, __pyx_t_8, __pyx_t_11, __pyx_t_12); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 97, __pyx_L1_error)
if (unlikely(!__pyx_t_12.memview)) __PYX_ERR(0, 101, __pyx_L1_error)
__pyx_t_5 = __pyx_f_7ltfatpy_4comp_11comp_pgauss_comp_pgauss_cplx(__pyx_t_7, __pyx_t_9, __pyx_t_8, __pyx_t_11, __pyx_t_12); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 101, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__PYX_XDEC_MEMVIEW(&__pyx_t_12, 1);
__pyx_t_12.memview = NULL;
__pyx_t_12.data = NULL;
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
 
/* "ltfatpy/comp/comp_pgauss.pyx":98
/* "ltfatpy/comp/comp_pgauss.pyx":102
* out = np.ndarray((L), dtype=np.complex128)
* comp_pgauss_cplx(L, w, c_t, c_f, out)
* return out # <<<<<<<<<<<<<<
......@@ -2068,7 +2068,7 @@ static PyObject *__pyx_f_7ltfatpy_4comp_11comp_pgauss_comp_pgauss(PyObject *__py
__pyx_r = __pyx_v_out;
goto __pyx_L0;
 
/* "ltfatpy/comp/comp_pgauss.pyx":86
/* "ltfatpy/comp/comp_pgauss.pyx":90
* pgauss_cmplx_d(L, w, c_t, c_f, & out[0])
*
* cpdef comp_pgauss(L, w=1.0, c_t=0, c_f=0): # <<<<<<<<<<<<<<
......@@ -2144,7 +2144,7 @@ static PyObject *__pyx_pw_7ltfatpy_4comp_11comp_pgauss_1comp_pgauss(PyObject *__
}
}
if (unlikely(kw_args > 0)) {
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "comp_pgauss") < 0)) __PYX_ERR(0, 86, __pyx_L3_error)
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "comp_pgauss") < 0)) __PYX_ERR(0, 90, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
......@@ -2163,7 +2163,7 @@ static PyObject *__pyx_pw_7ltfatpy_4comp_11comp_pgauss_1comp_pgauss(PyObject *__
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
__Pyx_RaiseArgtupleInvalid("comp_pgauss", 0, 1, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 86, __pyx_L3_error)
__Pyx_RaiseArgtupleInvalid("comp_pgauss", 0, 1, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 90, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("ltfatpy.comp.comp_pgauss.comp_pgauss", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
......@@ -2187,7 +2187,7 @@ static PyObject *__pyx_pf_7ltfatpy_4comp_11comp_pgauss_comp_pgauss(CYTHON_UNUSED
__pyx_t_2.w = __pyx_v_w;
__pyx_t_2.c_t = __pyx_v_c_t;
__pyx_t_2.c_f = __pyx_v_c_f;
__pyx_t_1 = __pyx_f_7ltfatpy_4comp_11comp_pgauss_comp_pgauss(__pyx_v_L, 0, &__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 86, __pyx_L1_error)
__pyx_t_1 = __pyx_f_7ltfatpy_4comp_11comp_pgauss_comp_pgauss(__pyx_v_L, 0, &__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 90, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
......@@ -14985,22 +14985,22 @@ PyMODINIT_FUNC PyInit_comp_pgauss(void)
if (__Pyx_patch_abc() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
#endif
 
/* "ltfatpy/comp/comp_pgauss.pyx":64
/* "ltfatpy/comp/comp_pgauss.pyx":68
* from cython.view cimport array as cvarray
* from libc.stdlib cimport malloc, free
* import numpy as np # <<<<<<<<<<<<<<
*
* from ltfat cimport ltfatInt, pgauss_d, pgauss_cmplx_d
*/
__pyx_t_1 = __Pyx_Import(__pyx_n_s_numpy, 0, -1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 64, __pyx_L1_error)
__pyx_t_1 = __Pyx_Import(__pyx_n_s_numpy, 0, -1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 68, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_np, __pyx_t_1) < 0) __PYX_ERR(0, 64, __pyx_L1_error)
if (PyDict_SetItem(__pyx_d, __pyx_n_s_np, __pyx_t_1) < 0) __PYX_ERR(0, 68, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
/* "ltfatpy/comp/comp_pgauss.pyx":1
* # -*- coding: utf-8 -*- # <<<<<<<<<<<<<<
* # ######### COPYRIGHT #########
* #
* # Credits
*/
__pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
......
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment