Lines Matching +refs:imag +refs:err

1207     typedef struct { double real, imag; } __pyx_t_double_complex;  member
1219 typedef struct { float real, imag; } __pyx_t_float_complex; member
1913 #define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err) argument
1914 static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err);
1916 #define __Pyx_PyErr_ExceptionMatches(err) PyErr_ExceptionMatches(err) argument
2009 static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type);
2010 static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObjec…
2013 #define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type) argument
2014 …PyErr_GivenExceptionMatches2(err, type1, type2) (PyErr_GivenExceptionMatches(err, type1) || PyErr_… argument
2116 #define __Pyx_CIMAG(z) ((z).imag())
2123 #define __Pyx_CIMAG(z) ((z).imag)
2128 #define __Pyx_SET_CIMAG(z,y) ((z).imag(y))
27728 static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err) { in __Pyx_PyErr_ExceptionMatchesInState() argument
27730 if (exc_type == err) return 1; in __Pyx_PyErr_ExceptionMatchesInState()
27732 if (unlikely(PyTuple_Check(err))) in __Pyx_PyErr_ExceptionMatchesInState()
27733 return __Pyx_PyErr_ExceptionMatchesTuple(exc_type, err); in __Pyx_PyErr_ExceptionMatchesInState()
27734 return __Pyx_PyErr_GivenExceptionMatches(exc_type, err); in __Pyx_PyErr_ExceptionMatchesInState()
28203 static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject* e… in __Pyx_inner_PyErr_GivenExceptionMatches2() argument
28209 res = exc_type1 ? PyObject_IsSubclass(err, exc_type1) : 0; in __Pyx_inner_PyErr_GivenExceptionMatches2()
28211 PyErr_WriteUnraisable(err); in __Pyx_inner_PyErr_GivenExceptionMatches2()
28215 res = PyObject_IsSubclass(err, exc_type2); in __Pyx_inner_PyErr_GivenExceptionMatches2()
28217 PyErr_WriteUnraisable(err); in __Pyx_inner_PyErr_GivenExceptionMatches2()
28225 static CYTHON_INLINE int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type… in __Pyx_inner_PyErr_GivenExceptionMatches2() argument
28226 int res = exc_type1 ? __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type1) : 0; in __Pyx_inner_PyErr_GivenExceptionMatches2()
28228 res = __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2); in __Pyx_inner_PyErr_GivenExceptionMatches2()
28254 static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject* exc_type) { in __Pyx_PyErr_GivenExceptionMatches() argument
28255 if (likely(err == exc_type)) return 1; in __Pyx_PyErr_GivenExceptionMatches()
28256 if (likely(PyExceptionClass_Check(err))) { in __Pyx_PyErr_GivenExceptionMatches()
28258 return __Pyx_inner_PyErr_GivenExceptionMatches2(err, NULL, exc_type); in __Pyx_PyErr_GivenExceptionMatches()
28260 return __Pyx_PyErr_GivenExceptionMatchesTuple(err, exc_type); in __Pyx_PyErr_GivenExceptionMatches()
28264 return PyErr_GivenExceptionMatches(err, exc_type); in __Pyx_PyErr_GivenExceptionMatches()
28266 static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *exc_type1, PyO… in __Pyx_PyErr_GivenExceptionMatches2() argument
28269 if (likely(err == exc_type1 || err == exc_type2)) return 1; in __Pyx_PyErr_GivenExceptionMatches2()
28270 if (likely(PyExceptionClass_Check(err))) { in __Pyx_PyErr_GivenExceptionMatches2()
28271 return __Pyx_inner_PyErr_GivenExceptionMatches2(err, exc_type1, exc_type2); in __Pyx_PyErr_GivenExceptionMatches2()
28273 …return (PyErr_GivenExceptionMatches(err, exc_type1) || PyErr_GivenExceptionMatches(err, exc_type2)… in __Pyx_PyErr_GivenExceptionMatches2()
28903 z.imag = y; in __pyx_t_double_complex_from_parts()
28912 return (a.real == b.real) && (a.imag == b.imag); in __Pyx_c_eq_double()
28917 z.imag = a.imag + b.imag; in __Pyx_c_sum_double()
28923 z.imag = a.imag - b.imag; in __Pyx_c_diff_double()
28928 z.real = a.real * b.real - a.imag * b.imag; in __Pyx_c_prod_double()
28929 z.imag = a.real * b.imag + a.imag * b.real; in __Pyx_c_prod_double()
28934 if (b.imag == 0) { in __Pyx_c_quot_double()
28935 return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.real); in __Pyx_c_quot_double()
28936 } else if (fabs(b.real) >= fabs(b.imag)) { in __Pyx_c_quot_double()
28937 if (b.real == 0 && b.imag == 0) { in __Pyx_c_quot_double()
28938 return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.imag); in __Pyx_c_quot_double()
28940 double r = b.imag / b.real; in __Pyx_c_quot_double()
28941 double s = (double)(1.0) / (b.real + b.imag * r); in __Pyx_c_quot_double()
28943 (a.real + a.imag * r) * s, (a.imag - a.real * r) * s); in __Pyx_c_quot_double()
28946 double r = b.real / b.imag; in __Pyx_c_quot_double()
28947 double s = (double)(1.0) / (b.imag + b.real * r); in __Pyx_c_quot_double()
28949 (a.real * r + a.imag) * s, (a.imag * r - a.real) * s); in __Pyx_c_quot_double()
28954 if (b.imag == 0) { in __Pyx_c_quot_double()
28955 return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.real); in __Pyx_c_quot_double()
28957 double denom = b.real * b.real + b.imag * b.imag; in __Pyx_c_quot_double()
28959 (a.real * b.real + a.imag * b.imag) / denom, in __Pyx_c_quot_double()
28960 (a.imag * b.real - a.real * b.imag) / denom); in __Pyx_c_quot_double()
28967 z.imag = -a.imag; in __Pyx_c_neg_double()
28971 return (a.real == 0) && (a.imag == 0); in __Pyx_c_is_zero_double()
28976 z.imag = -a.imag; in __Pyx_c_conj_double()
28982 return sqrt(z.real*z.real + z.imag*z.imag); in __Pyx_c_abs_double()
28984 return hypot(z.real, z.imag); in __Pyx_c_abs_double()
28990 if (b.imag == 0 && b.real == (int)b.real) { in __Pyx_c_pow_double()
28992 double denom = a.real * a.real + a.imag * a.imag; in __Pyx_c_pow_double()
28994 a.imag = -a.imag / denom; in __Pyx_c_pow_double()
29000 z.imag = 0; in __Pyx_c_pow_double()
29014 if (a.imag == 0) { in __Pyx_c_pow_double()
29017 } else if (b.imag == 0) { in __Pyx_c_pow_double()
29019 z.imag = 0; in __Pyx_c_pow_double()
29030 theta = atan2(a.imag, a.real); in __Pyx_c_pow_double()
29033 z_r = exp(lnr * b.real - theta * b.imag); in __Pyx_c_pow_double()
29034 z_theta = theta * b.real + lnr * b.imag; in __Pyx_c_pow_double()
29036 z.imag = z_r * sin(z_theta); in __Pyx_c_pow_double()
29475 (double)cval.imag); in __Pyx_PyComplex_As___pyx_t_double_complex()
29505 z.imag = y; in __pyx_t_float_complex_from_parts()
29514 return (a.real == b.real) && (a.imag == b.imag); in __Pyx_c_eq_float()
29519 z.imag = a.imag + b.imag; in __Pyx_c_sum_float()
29525 z.imag = a.imag - b.imag; in __Pyx_c_diff_float()
29530 z.real = a.real * b.real - a.imag * b.imag; in __Pyx_c_prod_float()
29531 z.imag = a.real * b.imag + a.imag * b.real; in __Pyx_c_prod_float()
29536 if (b.imag == 0) { in __Pyx_c_quot_float()
29537 return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.real); in __Pyx_c_quot_float()
29538 } else if (fabsf(b.real) >= fabsf(b.imag)) { in __Pyx_c_quot_float()
29539 if (b.real == 0 && b.imag == 0) { in __Pyx_c_quot_float()
29540 return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.imag); in __Pyx_c_quot_float()
29542 float r = b.imag / b.real; in __Pyx_c_quot_float()
29543 float s = (float)(1.0) / (b.real + b.imag * r); in __Pyx_c_quot_float()
29545 (a.real + a.imag * r) * s, (a.imag - a.real * r) * s); in __Pyx_c_quot_float()
29548 float r = b.real / b.imag; in __Pyx_c_quot_float()
29549 float s = (float)(1.0) / (b.imag + b.real * r); in __Pyx_c_quot_float()
29551 (a.real * r + a.imag) * s, (a.imag * r - a.real) * s); in __Pyx_c_quot_float()
29556 if (b.imag == 0) { in __Pyx_c_quot_float()
29557 return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.real); in __Pyx_c_quot_float()
29559 float denom = b.real * b.real + b.imag * b.imag; in __Pyx_c_quot_float()
29561 (a.real * b.real + a.imag * b.imag) / denom, in __Pyx_c_quot_float()
29562 (a.imag * b.real - a.real * b.imag) / denom); in __Pyx_c_quot_float()
29569 z.imag = -a.imag; in __Pyx_c_neg_float()
29573 return (a.real == 0) && (a.imag == 0); in __Pyx_c_is_zero_float()
29578 z.imag = -a.imag; in __Pyx_c_conj_float()
29584 return sqrtf(z.real*z.real + z.imag*z.imag); in __Pyx_c_abs_float()
29586 return hypotf(z.real, z.imag); in __Pyx_c_abs_float()
29592 if (b.imag == 0 && b.real == (int)b.real) { in __Pyx_c_pow_float()
29594 float denom = a.real * a.real + a.imag * a.imag; in __Pyx_c_pow_float()
29596 a.imag = -a.imag / denom; in __Pyx_c_pow_float()
29602 z.imag = 0; in __Pyx_c_pow_float()
29616 if (a.imag == 0) { in __Pyx_c_pow_float()
29619 } else if (b.imag == 0) { in __Pyx_c_pow_float()
29621 z.imag = 0; in __Pyx_c_pow_float()
29632 theta = atan2f(a.imag, a.real); in __Pyx_c_pow_float()
29635 z_r = expf(lnr * b.real - theta * b.imag); in __Pyx_c_pow_float()
29636 z_theta = theta * b.real + lnr * b.imag; in __Pyx_c_pow_float()
29638 z.imag = z_r * sinf(z_theta); in __Pyx_c_pow_float()