Lines Matching +refs:imag +refs:err

1199     typedef struct { double real, imag; } __pyx_t_double_complex;  member
1211 typedef struct { float real, imag; } __pyx_t_float_complex; member
1635 #define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err) argument
1636 static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err);
1638 #define __Pyx_PyErr_ExceptionMatches(err) PyErr_ExceptionMatches(err) argument
1772 static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type);
1773 static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObjec…
1776 #define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type) argument
1777 …PyErr_GivenExceptionMatches2(err, type1, type2) (PyErr_GivenExceptionMatches(err, type1) || PyErr_… argument
1905 #define __Pyx_CIMAG(z) ((z).imag())
1912 #define __Pyx_CIMAG(z) ((z).imag)
1917 #define __Pyx_SET_CIMAG(z,y) ((z).imag(y))
21129 static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err) { in __Pyx_PyErr_ExceptionMatchesInState() argument
21131 if (exc_type == err) return 1; in __Pyx_PyErr_ExceptionMatchesInState()
21133 if (unlikely(PyTuple_Check(err))) in __Pyx_PyErr_ExceptionMatchesInState()
21134 return __Pyx_PyErr_ExceptionMatchesTuple(exc_type, err); in __Pyx_PyErr_ExceptionMatchesInState()
21135 return __Pyx_PyErr_GivenExceptionMatches(exc_type, err); in __Pyx_PyErr_ExceptionMatchesInState()
21881 static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject* e… in __Pyx_inner_PyErr_GivenExceptionMatches2() argument
21887 res = exc_type1 ? PyObject_IsSubclass(err, exc_type1) : 0; in __Pyx_inner_PyErr_GivenExceptionMatches2()
21889 PyErr_WriteUnraisable(err); in __Pyx_inner_PyErr_GivenExceptionMatches2()
21893 res = PyObject_IsSubclass(err, exc_type2); in __Pyx_inner_PyErr_GivenExceptionMatches2()
21895 PyErr_WriteUnraisable(err); in __Pyx_inner_PyErr_GivenExceptionMatches2()
21903 static CYTHON_INLINE int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type… in __Pyx_inner_PyErr_GivenExceptionMatches2() argument
21904 int res = exc_type1 ? __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type1) : 0; in __Pyx_inner_PyErr_GivenExceptionMatches2()
21906 res = __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2); in __Pyx_inner_PyErr_GivenExceptionMatches2()
21932 static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject* exc_type) { in __Pyx_PyErr_GivenExceptionMatches() argument
21933 if (likely(err == exc_type)) return 1; in __Pyx_PyErr_GivenExceptionMatches()
21934 if (likely(PyExceptionClass_Check(err))) { in __Pyx_PyErr_GivenExceptionMatches()
21936 return __Pyx_inner_PyErr_GivenExceptionMatches2(err, NULL, exc_type); in __Pyx_PyErr_GivenExceptionMatches()
21938 return __Pyx_PyErr_GivenExceptionMatchesTuple(err, exc_type); in __Pyx_PyErr_GivenExceptionMatches()
21942 return PyErr_GivenExceptionMatches(err, exc_type); in __Pyx_PyErr_GivenExceptionMatches()
21944 static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *exc_type1, PyO… in __Pyx_PyErr_GivenExceptionMatches2() argument
21947 if (likely(err == exc_type1 || err == exc_type2)) return 1; in __Pyx_PyErr_GivenExceptionMatches2()
21948 if (likely(PyExceptionClass_Check(err))) { in __Pyx_PyErr_GivenExceptionMatches2()
21949 return __Pyx_inner_PyErr_GivenExceptionMatches2(err, exc_type1, exc_type2); in __Pyx_PyErr_GivenExceptionMatches2()
21951 …return (PyErr_GivenExceptionMatches(err, exc_type1) || PyErr_GivenExceptionMatches(err, exc_type2)… in __Pyx_PyErr_GivenExceptionMatches2()
22457 z.imag = y; in __pyx_t_double_complex_from_parts()
22466 return (a.real == b.real) && (a.imag == b.imag); in __Pyx_c_eq_double()
22471 z.imag = a.imag + b.imag; in __Pyx_c_sum_double()
22477 z.imag = a.imag - b.imag; in __Pyx_c_diff_double()
22482 z.real = a.real * b.real - a.imag * b.imag; in __Pyx_c_prod_double()
22483 z.imag = a.real * b.imag + a.imag * b.real; in __Pyx_c_prod_double()
22488 if (b.imag == 0) { in __Pyx_c_quot_double()
22489 return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.real); in __Pyx_c_quot_double()
22490 } else if (fabs(b.real) >= fabs(b.imag)) { in __Pyx_c_quot_double()
22491 if (b.real == 0 && b.imag == 0) { in __Pyx_c_quot_double()
22492 return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.imag); in __Pyx_c_quot_double()
22494 double r = b.imag / b.real; in __Pyx_c_quot_double()
22495 double s = (double)(1.0) / (b.real + b.imag * r); in __Pyx_c_quot_double()
22497 (a.real + a.imag * r) * s, (a.imag - a.real * r) * s); in __Pyx_c_quot_double()
22500 double r = b.real / b.imag; in __Pyx_c_quot_double()
22501 double s = (double)(1.0) / (b.imag + b.real * r); in __Pyx_c_quot_double()
22503 (a.real * r + a.imag) * s, (a.imag * r - a.real) * s); in __Pyx_c_quot_double()
22508 if (b.imag == 0) { in __Pyx_c_quot_double()
22509 return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.real); in __Pyx_c_quot_double()
22511 double denom = b.real * b.real + b.imag * b.imag; in __Pyx_c_quot_double()
22513 (a.real * b.real + a.imag * b.imag) / denom, in __Pyx_c_quot_double()
22514 (a.imag * b.real - a.real * b.imag) / denom); in __Pyx_c_quot_double()
22521 z.imag = -a.imag; in __Pyx_c_neg_double()
22525 return (a.real == 0) && (a.imag == 0); in __Pyx_c_is_zero_double()
22530 z.imag = -a.imag; in __Pyx_c_conj_double()
22536 return sqrt(z.real*z.real + z.imag*z.imag); in __Pyx_c_abs_double()
22538 return hypot(z.real, z.imag); in __Pyx_c_abs_double()
22544 if (b.imag == 0 && b.real == (int)b.real) { in __Pyx_c_pow_double()
22546 double denom = a.real * a.real + a.imag * a.imag; in __Pyx_c_pow_double()
22548 a.imag = -a.imag / denom; in __Pyx_c_pow_double()
22554 z.imag = 0; in __Pyx_c_pow_double()
22568 if (a.imag == 0) { in __Pyx_c_pow_double()
22571 } else if (b.imag == 0) { in __Pyx_c_pow_double()
22573 z.imag = 0; in __Pyx_c_pow_double()
22584 theta = atan2(a.imag, a.real); in __Pyx_c_pow_double()
22587 z_r = exp(lnr * b.real - theta * b.imag); in __Pyx_c_pow_double()
22588 z_theta = theta * b.real + lnr * b.imag; in __Pyx_c_pow_double()
22590 z.imag = z_r * sin(z_theta); in __Pyx_c_pow_double()
22704 z.imag = y; in __pyx_t_float_complex_from_parts()
22713 return (a.real == b.real) && (a.imag == b.imag); in __Pyx_c_eq_float()
22718 z.imag = a.imag + b.imag; in __Pyx_c_sum_float()
22724 z.imag = a.imag - b.imag; in __Pyx_c_diff_float()
22729 z.real = a.real * b.real - a.imag * b.imag; in __Pyx_c_prod_float()
22730 z.imag = a.real * b.imag + a.imag * b.real; in __Pyx_c_prod_float()
22735 if (b.imag == 0) { in __Pyx_c_quot_float()
22736 return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.real); in __Pyx_c_quot_float()
22737 } else if (fabsf(b.real) >= fabsf(b.imag)) { in __Pyx_c_quot_float()
22738 if (b.real == 0 && b.imag == 0) { in __Pyx_c_quot_float()
22739 return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.imag); in __Pyx_c_quot_float()
22741 float r = b.imag / b.real; in __Pyx_c_quot_float()
22742 float s = (float)(1.0) / (b.real + b.imag * r); in __Pyx_c_quot_float()
22744 (a.real + a.imag * r) * s, (a.imag - a.real * r) * s); in __Pyx_c_quot_float()
22747 float r = b.real / b.imag; in __Pyx_c_quot_float()
22748 float s = (float)(1.0) / (b.imag + b.real * r); in __Pyx_c_quot_float()
22750 (a.real * r + a.imag) * s, (a.imag * r - a.real) * s); in __Pyx_c_quot_float()
22755 if (b.imag == 0) { in __Pyx_c_quot_float()
22756 return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.real); in __Pyx_c_quot_float()
22758 float denom = b.real * b.real + b.imag * b.imag; in __Pyx_c_quot_float()
22760 (a.real * b.real + a.imag * b.imag) / denom, in __Pyx_c_quot_float()
22761 (a.imag * b.real - a.real * b.imag) / denom); in __Pyx_c_quot_float()
22768 z.imag = -a.imag; in __Pyx_c_neg_float()
22772 return (a.real == 0) && (a.imag == 0); in __Pyx_c_is_zero_float()
22777 z.imag = -a.imag; in __Pyx_c_conj_float()
22783 return sqrtf(z.real*z.real + z.imag*z.imag); in __Pyx_c_abs_float()
22785 return hypotf(z.real, z.imag); in __Pyx_c_abs_float()
22791 if (b.imag == 0 && b.real == (int)b.real) { in __Pyx_c_pow_float()
22793 float denom = a.real * a.real + a.imag * a.imag; in __Pyx_c_pow_float()
22795 a.imag = -a.imag / denom; in __Pyx_c_pow_float()
22801 z.imag = 0; in __Pyx_c_pow_float()
22815 if (a.imag == 0) { in __Pyx_c_pow_float()
22818 } else if (b.imag == 0) { in __Pyx_c_pow_float()
22820 z.imag = 0; in __Pyx_c_pow_float()
22831 theta = atan2f(a.imag, a.real); in __Pyx_c_pow_float()
22834 z_r = expf(lnr * b.real - theta * b.imag); in __Pyx_c_pow_float()
22835 z_theta = theta * b.real + lnr * b.imag; in __Pyx_c_pow_float()
22837 z.imag = z_r * sinf(z_theta); in __Pyx_c_pow_float()