Lines Matching +refs:imag +refs:err

1206     typedef struct { double real, imag; } __pyx_t_double_complex;  member
1218 typedef struct { float real, imag; } __pyx_t_float_complex; member
1837 #define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err) argument
1838 static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err);
1840 #define __Pyx_PyErr_ExceptionMatches(err) PyErr_ExceptionMatches(err) argument
1977 static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type);
1978 static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObjec…
1981 #define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type) argument
1982 …PyErr_GivenExceptionMatches2(err, type1, type2) (PyErr_GivenExceptionMatches(err, type1) || PyErr_… argument
2145 #define __Pyx_CIMAG(z) ((z).imag())
2152 #define __Pyx_CIMAG(z) ((z).imag)
2157 #define __Pyx_SET_CIMAG(z,y) ((z).imag(y))
27550 static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err) { in __Pyx_PyErr_ExceptionMatchesInState() argument
27552 if (exc_type == err) return 1; in __Pyx_PyErr_ExceptionMatchesInState()
27554 if (unlikely(PyTuple_Check(err))) in __Pyx_PyErr_ExceptionMatchesInState()
27555 return __Pyx_PyErr_ExceptionMatchesTuple(exc_type, err); in __Pyx_PyErr_ExceptionMatchesInState()
27556 return __Pyx_PyErr_GivenExceptionMatches(exc_type, err); in __Pyx_PyErr_ExceptionMatchesInState()
28277 static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject* e… in __Pyx_inner_PyErr_GivenExceptionMatches2() argument
28283 res = exc_type1 ? PyObject_IsSubclass(err, exc_type1) : 0; in __Pyx_inner_PyErr_GivenExceptionMatches2()
28285 PyErr_WriteUnraisable(err); in __Pyx_inner_PyErr_GivenExceptionMatches2()
28289 res = PyObject_IsSubclass(err, exc_type2); in __Pyx_inner_PyErr_GivenExceptionMatches2()
28291 PyErr_WriteUnraisable(err); in __Pyx_inner_PyErr_GivenExceptionMatches2()
28299 static CYTHON_INLINE int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type… in __Pyx_inner_PyErr_GivenExceptionMatches2() argument
28300 int res = exc_type1 ? __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type1) : 0; in __Pyx_inner_PyErr_GivenExceptionMatches2()
28302 res = __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2); in __Pyx_inner_PyErr_GivenExceptionMatches2()
28328 static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject* exc_type) { in __Pyx_PyErr_GivenExceptionMatches() argument
28329 if (likely(err == exc_type)) return 1; in __Pyx_PyErr_GivenExceptionMatches()
28330 if (likely(PyExceptionClass_Check(err))) { in __Pyx_PyErr_GivenExceptionMatches()
28332 return __Pyx_inner_PyErr_GivenExceptionMatches2(err, NULL, exc_type); in __Pyx_PyErr_GivenExceptionMatches()
28334 return __Pyx_PyErr_GivenExceptionMatchesTuple(err, exc_type); in __Pyx_PyErr_GivenExceptionMatches()
28338 return PyErr_GivenExceptionMatches(err, exc_type); in __Pyx_PyErr_GivenExceptionMatches()
28340 static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *exc_type1, PyO… in __Pyx_PyErr_GivenExceptionMatches2() argument
28343 if (likely(err == exc_type1 || err == exc_type2)) return 1; in __Pyx_PyErr_GivenExceptionMatches2()
28344 if (likely(PyExceptionClass_Check(err))) { in __Pyx_PyErr_GivenExceptionMatches2()
28345 return __Pyx_inner_PyErr_GivenExceptionMatches2(err, exc_type1, exc_type2); in __Pyx_PyErr_GivenExceptionMatches2()
28347 …return (PyErr_GivenExceptionMatches(err, exc_type1) || PyErr_GivenExceptionMatches(err, exc_type2)… in __Pyx_PyErr_GivenExceptionMatches2()
28984 z.imag = y; in __pyx_t_double_complex_from_parts()
28993 return (a.real == b.real) && (a.imag == b.imag); in __Pyx_c_eq_double()
28998 z.imag = a.imag + b.imag; in __Pyx_c_sum_double()
29004 z.imag = a.imag - b.imag; in __Pyx_c_diff_double()
29009 z.real = a.real * b.real - a.imag * b.imag; in __Pyx_c_prod_double()
29010 z.imag = a.real * b.imag + a.imag * b.real; in __Pyx_c_prod_double()
29015 if (b.imag == 0) { in __Pyx_c_quot_double()
29016 return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.real); in __Pyx_c_quot_double()
29017 } else if (fabs(b.real) >= fabs(b.imag)) { in __Pyx_c_quot_double()
29018 if (b.real == 0 && b.imag == 0) { in __Pyx_c_quot_double()
29019 return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.imag); in __Pyx_c_quot_double()
29021 double r = b.imag / b.real; in __Pyx_c_quot_double()
29022 double s = (double)(1.0) / (b.real + b.imag * r); in __Pyx_c_quot_double()
29024 (a.real + a.imag * r) * s, (a.imag - a.real * r) * s); in __Pyx_c_quot_double()
29027 double r = b.real / b.imag; in __Pyx_c_quot_double()
29028 double s = (double)(1.0) / (b.imag + b.real * r); in __Pyx_c_quot_double()
29030 (a.real * r + a.imag) * s, (a.imag * r - a.real) * s); in __Pyx_c_quot_double()
29035 if (b.imag == 0) { in __Pyx_c_quot_double()
29036 return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.real); in __Pyx_c_quot_double()
29038 double denom = b.real * b.real + b.imag * b.imag; in __Pyx_c_quot_double()
29040 (a.real * b.real + a.imag * b.imag) / denom, in __Pyx_c_quot_double()
29041 (a.imag * b.real - a.real * b.imag) / denom); in __Pyx_c_quot_double()
29048 z.imag = -a.imag; in __Pyx_c_neg_double()
29052 return (a.real == 0) && (a.imag == 0); in __Pyx_c_is_zero_double()
29057 z.imag = -a.imag; in __Pyx_c_conj_double()
29063 return sqrt(z.real*z.real + z.imag*z.imag); in __Pyx_c_abs_double()
29065 return hypot(z.real, z.imag); in __Pyx_c_abs_double()
29071 if (b.imag == 0 && b.real == (int)b.real) { in __Pyx_c_pow_double()
29073 double denom = a.real * a.real + a.imag * a.imag; in __Pyx_c_pow_double()
29075 a.imag = -a.imag / denom; in __Pyx_c_pow_double()
29081 z.imag = 0; in __Pyx_c_pow_double()
29095 if (a.imag == 0) { in __Pyx_c_pow_double()
29098 } else if (b.imag == 0) { in __Pyx_c_pow_double()
29100 z.imag = 0; in __Pyx_c_pow_double()
29111 theta = atan2(a.imag, a.real); in __Pyx_c_pow_double()
29114 z_r = exp(lnr * b.real - theta * b.imag); in __Pyx_c_pow_double()
29115 z_theta = theta * b.real + lnr * b.imag; in __Pyx_c_pow_double()
29117 z.imag = z_r * sin(z_theta); in __Pyx_c_pow_double()
29540 (double)cval.imag); in __Pyx_PyComplex_As___pyx_t_double_complex()
29612 z.imag = y; in __pyx_t_float_complex_from_parts()
29621 return (a.real == b.real) && (a.imag == b.imag); in __Pyx_c_eq_float()
29626 z.imag = a.imag + b.imag; in __Pyx_c_sum_float()
29632 z.imag = a.imag - b.imag; in __Pyx_c_diff_float()
29637 z.real = a.real * b.real - a.imag * b.imag; in __Pyx_c_prod_float()
29638 z.imag = a.real * b.imag + a.imag * b.real; in __Pyx_c_prod_float()
29643 if (b.imag == 0) { in __Pyx_c_quot_float()
29644 return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.real); in __Pyx_c_quot_float()
29645 } else if (fabsf(b.real) >= fabsf(b.imag)) { in __Pyx_c_quot_float()
29646 if (b.real == 0 && b.imag == 0) { in __Pyx_c_quot_float()
29647 return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.imag); in __Pyx_c_quot_float()
29649 float r = b.imag / b.real; in __Pyx_c_quot_float()
29650 float s = (float)(1.0) / (b.real + b.imag * r); in __Pyx_c_quot_float()
29652 (a.real + a.imag * r) * s, (a.imag - a.real * r) * s); in __Pyx_c_quot_float()
29655 float r = b.real / b.imag; in __Pyx_c_quot_float()
29656 float s = (float)(1.0) / (b.imag + b.real * r); in __Pyx_c_quot_float()
29658 (a.real * r + a.imag) * s, (a.imag * r - a.real) * s); in __Pyx_c_quot_float()
29663 if (b.imag == 0) { in __Pyx_c_quot_float()
29664 return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.real); in __Pyx_c_quot_float()
29666 float denom = b.real * b.real + b.imag * b.imag; in __Pyx_c_quot_float()
29668 (a.real * b.real + a.imag * b.imag) / denom, in __Pyx_c_quot_float()
29669 (a.imag * b.real - a.real * b.imag) / denom); in __Pyx_c_quot_float()
29676 z.imag = -a.imag; in __Pyx_c_neg_float()
29680 return (a.real == 0) && (a.imag == 0); in __Pyx_c_is_zero_float()
29685 z.imag = -a.imag; in __Pyx_c_conj_float()
29691 return sqrtf(z.real*z.real + z.imag*z.imag); in __Pyx_c_abs_float()
29693 return hypotf(z.real, z.imag); in __Pyx_c_abs_float()
29699 if (b.imag == 0 && b.real == (int)b.real) { in __Pyx_c_pow_float()
29701 float denom = a.real * a.real + a.imag * a.imag; in __Pyx_c_pow_float()
29703 a.imag = -a.imag / denom; in __Pyx_c_pow_float()
29709 z.imag = 0; in __Pyx_c_pow_float()
29723 if (a.imag == 0) { in __Pyx_c_pow_float()
29726 } else if (b.imag == 0) { in __Pyx_c_pow_float()
29728 z.imag = 0; in __Pyx_c_pow_float()
29739 theta = atan2f(a.imag, a.real); in __Pyx_c_pow_float()
29742 z_r = expf(lnr * b.real - theta * b.imag); in __Pyx_c_pow_float()
29743 z_theta = theta * b.real + lnr * b.imag; in __Pyx_c_pow_float()
29745 z.imag = z_r * sinf(z_theta); in __Pyx_c_pow_float()