Lines Matching +refs:imag +refs:err

1245     typedef struct { double real, imag; } __pyx_t_double_complex;  member
1257 typedef struct { float real, imag; } __pyx_t_float_complex; member
2199 #define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err) argument
2200 static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err);
2202 #define __Pyx_PyErr_ExceptionMatches(err) PyErr_ExceptionMatches(err) argument
2310 static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type);
2311 static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObjec…
2314 #define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type) argument
2315 …PyErr_GivenExceptionMatches2(err, type1, type2) (PyErr_GivenExceptionMatches(err, type1) || PyErr_… argument
2428 #define __Pyx_CIMAG(z) ((z).imag())
2435 #define __Pyx_CIMAG(z) ((z).imag)
2440 #define __Pyx_SET_CIMAG(z,y) ((z).imag(y))
29409 static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err) { in __Pyx_PyErr_ExceptionMatchesInState() argument
29411 if (exc_type == err) return 1; in __Pyx_PyErr_ExceptionMatchesInState()
29413 if (unlikely(PyTuple_Check(err))) in __Pyx_PyErr_ExceptionMatchesInState()
29414 return __Pyx_PyErr_ExceptionMatchesTuple(exc_type, err); in __Pyx_PyErr_ExceptionMatchesInState()
29415 return __Pyx_PyErr_GivenExceptionMatches(exc_type, err); in __Pyx_PyErr_ExceptionMatchesInState()
29820 static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject* e… in __Pyx_inner_PyErr_GivenExceptionMatches2() argument
29826 res = exc_type1 ? PyObject_IsSubclass(err, exc_type1) : 0; in __Pyx_inner_PyErr_GivenExceptionMatches2()
29828 PyErr_WriteUnraisable(err); in __Pyx_inner_PyErr_GivenExceptionMatches2()
29832 res = PyObject_IsSubclass(err, exc_type2); in __Pyx_inner_PyErr_GivenExceptionMatches2()
29834 PyErr_WriteUnraisable(err); in __Pyx_inner_PyErr_GivenExceptionMatches2()
29842 static CYTHON_INLINE int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type… in __Pyx_inner_PyErr_GivenExceptionMatches2() argument
29843 int res = exc_type1 ? __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type1) : 0; in __Pyx_inner_PyErr_GivenExceptionMatches2()
29845 res = __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2); in __Pyx_inner_PyErr_GivenExceptionMatches2()
29871 static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject* exc_type) { in __Pyx_PyErr_GivenExceptionMatches() argument
29872 if (likely(err == exc_type)) return 1; in __Pyx_PyErr_GivenExceptionMatches()
29873 if (likely(PyExceptionClass_Check(err))) { in __Pyx_PyErr_GivenExceptionMatches()
29875 return __Pyx_inner_PyErr_GivenExceptionMatches2(err, NULL, exc_type); in __Pyx_PyErr_GivenExceptionMatches()
29877 return __Pyx_PyErr_GivenExceptionMatchesTuple(err, exc_type); in __Pyx_PyErr_GivenExceptionMatches()
29881 return PyErr_GivenExceptionMatches(err, exc_type); in __Pyx_PyErr_GivenExceptionMatches()
29883 static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *exc_type1, PyO… in __Pyx_PyErr_GivenExceptionMatches2() argument
29886 if (likely(err == exc_type1 || err == exc_type2)) return 1; in __Pyx_PyErr_GivenExceptionMatches2()
29887 if (likely(PyExceptionClass_Check(err))) { in __Pyx_PyErr_GivenExceptionMatches2()
29888 return __Pyx_inner_PyErr_GivenExceptionMatches2(err, exc_type1, exc_type2); in __Pyx_PyErr_GivenExceptionMatches2()
29890 …return (PyErr_GivenExceptionMatches(err, exc_type1) || PyErr_GivenExceptionMatches(err, exc_type2)… in __Pyx_PyErr_GivenExceptionMatches2()
30503 z.imag = y; in __pyx_t_double_complex_from_parts()
30512 return (a.real == b.real) && (a.imag == b.imag); in __Pyx_c_eq_double()
30517 z.imag = a.imag + b.imag; in __Pyx_c_sum_double()
30523 z.imag = a.imag - b.imag; in __Pyx_c_diff_double()
30528 z.real = a.real * b.real - a.imag * b.imag; in __Pyx_c_prod_double()
30529 z.imag = a.real * b.imag + a.imag * b.real; in __Pyx_c_prod_double()
30534 if (b.imag == 0) { in __Pyx_c_quot_double()
30535 return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.real); in __Pyx_c_quot_double()
30536 } else if (fabs(b.real) >= fabs(b.imag)) { in __Pyx_c_quot_double()
30537 if (b.real == 0 && b.imag == 0) { in __Pyx_c_quot_double()
30538 return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.imag); in __Pyx_c_quot_double()
30540 double r = b.imag / b.real; in __Pyx_c_quot_double()
30541 double s = (double)(1.0) / (b.real + b.imag * r); in __Pyx_c_quot_double()
30543 (a.real + a.imag * r) * s, (a.imag - a.real * r) * s); in __Pyx_c_quot_double()
30546 double r = b.real / b.imag; in __Pyx_c_quot_double()
30547 double s = (double)(1.0) / (b.imag + b.real * r); in __Pyx_c_quot_double()
30549 (a.real * r + a.imag) * s, (a.imag * r - a.real) * s); in __Pyx_c_quot_double()
30554 if (b.imag == 0) { in __Pyx_c_quot_double()
30555 return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.real); in __Pyx_c_quot_double()
30557 double denom = b.real * b.real + b.imag * b.imag; in __Pyx_c_quot_double()
30559 (a.real * b.real + a.imag * b.imag) / denom, in __Pyx_c_quot_double()
30560 (a.imag * b.real - a.real * b.imag) / denom); in __Pyx_c_quot_double()
30567 z.imag = -a.imag; in __Pyx_c_neg_double()
30571 return (a.real == 0) && (a.imag == 0); in __Pyx_c_is_zero_double()
30576 z.imag = -a.imag; in __Pyx_c_conj_double()
30582 return sqrt(z.real*z.real + z.imag*z.imag); in __Pyx_c_abs_double()
30584 return hypot(z.real, z.imag); in __Pyx_c_abs_double()
30590 if (b.imag == 0 && b.real == (int)b.real) { in __Pyx_c_pow_double()
30592 double denom = a.real * a.real + a.imag * a.imag; in __Pyx_c_pow_double()
30594 a.imag = -a.imag / denom; in __Pyx_c_pow_double()
30600 z.imag = 0; in __Pyx_c_pow_double()
30614 if (a.imag == 0) { in __Pyx_c_pow_double()
30617 } else if (b.imag == 0) { in __Pyx_c_pow_double()
30619 z.imag = 0; in __Pyx_c_pow_double()
30630 theta = atan2(a.imag, a.real); in __Pyx_c_pow_double()
30633 z_r = exp(lnr * b.real - theta * b.imag); in __Pyx_c_pow_double()
30634 z_theta = theta * b.real + lnr * b.imag; in __Pyx_c_pow_double()
30636 z.imag = z_r * sin(z_theta); in __Pyx_c_pow_double()
31025 (double)cval.imag); in __Pyx_PyComplex_As___pyx_t_double_complex()
31101 z.imag = y; in __pyx_t_float_complex_from_parts()
31110 return (a.real == b.real) && (a.imag == b.imag); in __Pyx_c_eq_float()
31115 z.imag = a.imag + b.imag; in __Pyx_c_sum_float()
31121 z.imag = a.imag - b.imag; in __Pyx_c_diff_float()
31126 z.real = a.real * b.real - a.imag * b.imag; in __Pyx_c_prod_float()
31127 z.imag = a.real * b.imag + a.imag * b.real; in __Pyx_c_prod_float()
31132 if (b.imag == 0) { in __Pyx_c_quot_float()
31133 return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.real); in __Pyx_c_quot_float()
31134 } else if (fabsf(b.real) >= fabsf(b.imag)) { in __Pyx_c_quot_float()
31135 if (b.real == 0 && b.imag == 0) { in __Pyx_c_quot_float()
31136 return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.imag); in __Pyx_c_quot_float()
31138 float r = b.imag / b.real; in __Pyx_c_quot_float()
31139 float s = (float)(1.0) / (b.real + b.imag * r); in __Pyx_c_quot_float()
31141 (a.real + a.imag * r) * s, (a.imag - a.real * r) * s); in __Pyx_c_quot_float()
31144 float r = b.real / b.imag; in __Pyx_c_quot_float()
31145 float s = (float)(1.0) / (b.imag + b.real * r); in __Pyx_c_quot_float()
31147 (a.real * r + a.imag) * s, (a.imag * r - a.real) * s); in __Pyx_c_quot_float()
31152 if (b.imag == 0) { in __Pyx_c_quot_float()
31153 return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.real); in __Pyx_c_quot_float()
31155 float denom = b.real * b.real + b.imag * b.imag; in __Pyx_c_quot_float()
31157 (a.real * b.real + a.imag * b.imag) / denom, in __Pyx_c_quot_float()
31158 (a.imag * b.real - a.real * b.imag) / denom); in __Pyx_c_quot_float()
31165 z.imag = -a.imag; in __Pyx_c_neg_float()
31169 return (a.real == 0) && (a.imag == 0); in __Pyx_c_is_zero_float()
31174 z.imag = -a.imag; in __Pyx_c_conj_float()
31180 return sqrtf(z.real*z.real + z.imag*z.imag); in __Pyx_c_abs_float()
31182 return hypotf(z.real, z.imag); in __Pyx_c_abs_float()
31188 if (b.imag == 0 && b.real == (int)b.real) { in __Pyx_c_pow_float()
31190 float denom = a.real * a.real + a.imag * a.imag; in __Pyx_c_pow_float()
31192 a.imag = -a.imag / denom; in __Pyx_c_pow_float()
31198 z.imag = 0; in __Pyx_c_pow_float()
31212 if (a.imag == 0) { in __Pyx_c_pow_float()
31215 } else if (b.imag == 0) { in __Pyx_c_pow_float()
31217 z.imag = 0; in __Pyx_c_pow_float()
31228 theta = atan2f(a.imag, a.real); in __Pyx_c_pow_float()
31231 z_r = expf(lnr * b.real - theta * b.imag); in __Pyx_c_pow_float()
31232 z_theta = theta * b.real + lnr * b.imag; in __Pyx_c_pow_float()
31234 z.imag = z_r * sinf(z_theta); in __Pyx_c_pow_float()