Lines Matching +refs:imag +refs:err

1302     typedef struct { float real, imag; } __pyx_t_float_complex;  member
1314 typedef struct { double real, imag; } __pyx_t_double_complex; member
1441 #define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err) argument
1442 static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err);
1444 #define __Pyx_PyErr_ExceptionMatches(err) PyErr_ExceptionMatches(err) argument
2196 #define __Pyx_CIMAG(z) ((z).imag())
2203 #define __Pyx_CIMAG(z) ((z).imag)
2208 #define __Pyx_SET_CIMAG(z,y) ((z).imag(y))
2329 static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type);
2330 static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObjec…
2334 #define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type) argument
2335 …PyErr_GivenExceptionMatches2(err, type1, type2) (PyErr_GivenExceptionMatches(err, type1) || PyErr_… argument
12977 static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err) { in __Pyx_PyErr_ExceptionMatchesInState() argument
12979 if (exc_type == err) return 1; in __Pyx_PyErr_ExceptionMatchesInState()
12981 if (unlikely(PyTuple_Check(err))) in __Pyx_PyErr_ExceptionMatchesInState()
12982 return __Pyx_PyErr_ExceptionMatchesTuple(exc_type, err); in __Pyx_PyErr_ExceptionMatchesInState()
12983 return __Pyx_PyErr_GivenExceptionMatches(exc_type, err); in __Pyx_PyErr_ExceptionMatchesInState()
16229 z.imag = y; in __pyx_t_float_complex_from_parts()
16238 return (a.real == b.real) && (a.imag == b.imag); in __Pyx_c_eq_float()
16243 z.imag = a.imag + b.imag; in __Pyx_c_sum_float()
16249 z.imag = a.imag - b.imag; in __Pyx_c_diff_float()
16254 z.real = a.real * b.real - a.imag * b.imag; in __Pyx_c_prod_float()
16255 z.imag = a.real * b.imag + a.imag * b.real; in __Pyx_c_prod_float()
16260 if (b.imag == 0) { in __Pyx_c_quot_float()
16261 return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.real); in __Pyx_c_quot_float()
16262 } else if (fabsf(b.real) >= fabsf(b.imag)) { in __Pyx_c_quot_float()
16263 if (b.real == 0 && b.imag == 0) { in __Pyx_c_quot_float()
16264 return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.imag); in __Pyx_c_quot_float()
16266 float r = b.imag / b.real; in __Pyx_c_quot_float()
16267 float s = (float)(1.0) / (b.real + b.imag * r); in __Pyx_c_quot_float()
16269 (a.real + a.imag * r) * s, (a.imag - a.real * r) * s); in __Pyx_c_quot_float()
16272 float r = b.real / b.imag; in __Pyx_c_quot_float()
16273 float s = (float)(1.0) / (b.imag + b.real * r); in __Pyx_c_quot_float()
16275 (a.real * r + a.imag) * s, (a.imag * r - a.real) * s); in __Pyx_c_quot_float()
16280 if (b.imag == 0) { in __Pyx_c_quot_float()
16281 return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.real); in __Pyx_c_quot_float()
16283 float denom = b.real * b.real + b.imag * b.imag; in __Pyx_c_quot_float()
16285 (a.real * b.real + a.imag * b.imag) / denom, in __Pyx_c_quot_float()
16286 (a.imag * b.real - a.real * b.imag) / denom); in __Pyx_c_quot_float()
16293 z.imag = -a.imag; in __Pyx_c_neg_float()
16297 return (a.real == 0) && (a.imag == 0); in __Pyx_c_is_zero_float()
16302 z.imag = -a.imag; in __Pyx_c_conj_float()
16308 return sqrtf(z.real*z.real + z.imag*z.imag); in __Pyx_c_abs_float()
16310 return hypotf(z.real, z.imag); in __Pyx_c_abs_float()
16316 if (b.imag == 0 && b.real == (int)b.real) { in __Pyx_c_pow_float()
16318 float denom = a.real * a.real + a.imag * a.imag; in __Pyx_c_pow_float()
16320 a.imag = -a.imag / denom; in __Pyx_c_pow_float()
16326 z.imag = 0; in __Pyx_c_pow_float()
16340 if (a.imag == 0) { in __Pyx_c_pow_float()
16343 } else if (b.imag == 0) { in __Pyx_c_pow_float()
16345 z.imag = 0; in __Pyx_c_pow_float()
16356 theta = atan2f(a.imag, a.real); in __Pyx_c_pow_float()
16359 z_r = expf(lnr * b.real - theta * b.imag); in __Pyx_c_pow_float()
16360 z_theta = theta * b.real + lnr * b.imag; in __Pyx_c_pow_float()
16362 z.imag = z_r * sinf(z_theta); in __Pyx_c_pow_float()
16383 z.imag = y; in __pyx_t_double_complex_from_parts()
16392 return (a.real == b.real) && (a.imag == b.imag); in __Pyx_c_eq_double()
16397 z.imag = a.imag + b.imag; in __Pyx_c_sum_double()
16403 z.imag = a.imag - b.imag; in __Pyx_c_diff_double()
16408 z.real = a.real * b.real - a.imag * b.imag; in __Pyx_c_prod_double()
16409 z.imag = a.real * b.imag + a.imag * b.real; in __Pyx_c_prod_double()
16414 if (b.imag == 0) { in __Pyx_c_quot_double()
16415 return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.real); in __Pyx_c_quot_double()
16416 } else if (fabs(b.real) >= fabs(b.imag)) { in __Pyx_c_quot_double()
16417 if (b.real == 0 && b.imag == 0) { in __Pyx_c_quot_double()
16418 return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.imag); in __Pyx_c_quot_double()
16420 double r = b.imag / b.real; in __Pyx_c_quot_double()
16421 double s = (double)(1.0) / (b.real + b.imag * r); in __Pyx_c_quot_double()
16423 (a.real + a.imag * r) * s, (a.imag - a.real * r) * s); in __Pyx_c_quot_double()
16426 double r = b.real / b.imag; in __Pyx_c_quot_double()
16427 double s = (double)(1.0) / (b.imag + b.real * r); in __Pyx_c_quot_double()
16429 (a.real * r + a.imag) * s, (a.imag * r - a.real) * s); in __Pyx_c_quot_double()
16434 if (b.imag == 0) { in __Pyx_c_quot_double()
16435 return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.real); in __Pyx_c_quot_double()
16437 double denom = b.real * b.real + b.imag * b.imag; in __Pyx_c_quot_double()
16439 (a.real * b.real + a.imag * b.imag) / denom, in __Pyx_c_quot_double()
16440 (a.imag * b.real - a.real * b.imag) / denom); in __Pyx_c_quot_double()
16447 z.imag = -a.imag; in __Pyx_c_neg_double()
16451 return (a.real == 0) && (a.imag == 0); in __Pyx_c_is_zero_double()
16456 z.imag = -a.imag; in __Pyx_c_conj_double()
16462 return sqrt(z.real*z.real + z.imag*z.imag); in __Pyx_c_abs_double()
16464 return hypot(z.real, z.imag); in __Pyx_c_abs_double()
16470 if (b.imag == 0 && b.real == (int)b.real) { in __Pyx_c_pow_double()
16472 double denom = a.real * a.real + a.imag * a.imag; in __Pyx_c_pow_double()
16474 a.imag = -a.imag / denom; in __Pyx_c_pow_double()
16480 z.imag = 0; in __Pyx_c_pow_double()
16494 if (a.imag == 0) { in __Pyx_c_pow_double()
16497 } else if (b.imag == 0) { in __Pyx_c_pow_double()
16499 z.imag = 0; in __Pyx_c_pow_double()
16510 theta = atan2(a.imag, a.real); in __Pyx_c_pow_double()
16513 z_r = exp(lnr * b.real - theta * b.imag); in __Pyx_c_pow_double()
16514 z_theta = theta * b.real + lnr * b.imag; in __Pyx_c_pow_double()
16516 z.imag = z_r * sin(z_theta); in __Pyx_c_pow_double()
17422 static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject* e… in __Pyx_inner_PyErr_GivenExceptionMatches2() argument
17428 res = exc_type1 ? PyObject_IsSubclass(err, exc_type1) : 0; in __Pyx_inner_PyErr_GivenExceptionMatches2()
17430 PyErr_WriteUnraisable(err); in __Pyx_inner_PyErr_GivenExceptionMatches2()
17434 res = PyObject_IsSubclass(err, exc_type2); in __Pyx_inner_PyErr_GivenExceptionMatches2()
17436 PyErr_WriteUnraisable(err); in __Pyx_inner_PyErr_GivenExceptionMatches2()
17444 static CYTHON_INLINE int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type… in __Pyx_inner_PyErr_GivenExceptionMatches2() argument
17446 …return __Pyx_IsAnySubtype2((PyTypeObject*)err, (PyTypeObject*)exc_type1, (PyTypeObject*)exc_type2); in __Pyx_inner_PyErr_GivenExceptionMatches2()
17448 return __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2); in __Pyx_inner_PyErr_GivenExceptionMatches2()
17473 static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject* exc_type) { in __Pyx_PyErr_GivenExceptionMatches() argument
17474 if (likely(err == exc_type)) return 1; in __Pyx_PyErr_GivenExceptionMatches()
17475 if (likely(PyExceptionClass_Check(err))) { in __Pyx_PyErr_GivenExceptionMatches()
17477 return __Pyx_inner_PyErr_GivenExceptionMatches2(err, NULL, exc_type); in __Pyx_PyErr_GivenExceptionMatches()
17479 return __Pyx_PyErr_GivenExceptionMatchesTuple(err, exc_type); in __Pyx_PyErr_GivenExceptionMatches()
17483 return PyErr_GivenExceptionMatches(err, exc_type); in __Pyx_PyErr_GivenExceptionMatches()
17485 static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *exc_type1, PyO… in __Pyx_PyErr_GivenExceptionMatches2() argument
17488 if (likely(err == exc_type1 || err == exc_type2)) return 1; in __Pyx_PyErr_GivenExceptionMatches2()
17489 if (likely(PyExceptionClass_Check(err))) { in __Pyx_PyErr_GivenExceptionMatches2()
17490 return __Pyx_inner_PyErr_GivenExceptionMatches2(err, exc_type1, exc_type2); in __Pyx_PyErr_GivenExceptionMatches2()
17492 …return (PyErr_GivenExceptionMatches(err, exc_type1) || PyErr_GivenExceptionMatches(err, exc_type2)… in __Pyx_PyErr_GivenExceptionMatches2()