/third_party/python/Modules/ |
D | cmathmodule.c | 105 r.imag = m_inf(); in c_infj() 126 r.imag = m_nan(); in c_nanj() 183 if (!Py_IS_FINITE((z).real) || !Py_IS_FINITE((z).imag)) { \ 186 [special_type((z).imag)]; \ 225 if (fabs(z.real) > CM_LARGE_DOUBLE || fabs(z.imag) > CM_LARGE_DOUBLE) { in cmath_acos_impl() 227 r.real = atan2(fabs(z.imag), z.real); in cmath_acos_impl() 231 r.imag = -copysign(log(hypot(z.real/2., z.imag/2.)) + in cmath_acos_impl() 232 M_LN2*2., z.imag); in cmath_acos_impl() 234 r.imag = copysign(log(hypot(z.real/2., z.imag/2.)) + in cmath_acos_impl() 235 M_LN2*2., -z.imag); in cmath_acos_impl() [all …]
|
/third_party/python/Objects/ |
D | complexobject.c | 30 r.imag = a.imag + b.imag; in _Py_c_sum() 39 r.imag = a.imag - b.imag; in _Py_c_diff() 48 r.imag = -a.imag; in _Py_c_neg() 56 r.real = a.real*b.real - a.imag*b.imag; in _Py_c_prod() 57 r.imag = a.real*b.imag + a.imag*b.real; in _Py_c_prod() 93 const double abs_bimag = b.imag < 0 ? -b.imag : b.imag; in _Py_c_quot() 99 r.real = r.imag = 0.0; in _Py_c_quot() 102 const double ratio = b.imag / b.real; in _Py_c_quot() 103 const double denom = b.real + b.imag * ratio; in _Py_c_quot() 104 r.real = (a.real + a.imag * ratio) / denom; in _Py_c_quot() [all …]
|
/third_party/cmsis/CMSIS/DSP/Source/ComplexMathFunctions/ |
D | arm_cmplx_mag_squared_q31.c | 64 q31_t real, imag; /* Temporary input variables */ in arm_cmplx_mag_squared_q31() local 95 imag = *pSrc++; in arm_cmplx_mag_squared_q31() 97 acc1 = (q31_t) (((q63_t) imag * imag) >> 33); in arm_cmplx_mag_squared_q31() 114 q31_t real, imag; /* Temporary input variables */ in arm_cmplx_mag_squared_q31() local 127 imag = *pSrc++; in arm_cmplx_mag_squared_q31() 129 acc1 = (q31_t) (((q63_t) imag * imag) >> 33); in arm_cmplx_mag_squared_q31() 134 imag = *pSrc++; in arm_cmplx_mag_squared_q31() 136 acc1 = (q31_t) (((q63_t) imag * imag) >> 33); in arm_cmplx_mag_squared_q31() 140 imag = *pSrc++; in arm_cmplx_mag_squared_q31() 142 acc1 = (q31_t) (((q63_t) imag * imag) >> 33); in arm_cmplx_mag_squared_q31() [all …]
|
D | arm_cmplx_mag_q31.c | 67 q31_t real, imag; /* Temporary input variables */ in arm_cmplx_mag_q31() local 109 imag = *pSrc++; in arm_cmplx_mag_q31() 111 acc1 = (q31_t) (((q63_t) imag * imag) >> 33); in arm_cmplx_mag_q31() 128 q31_t real, imag; /* Temporary input variables */ in arm_cmplx_mag_q31() local 141 imag = *pSrc++; in arm_cmplx_mag_q31() 143 acc1 = (q31_t) (((q63_t) imag * imag) >> 33); in arm_cmplx_mag_q31() 149 imag = *pSrc++; in arm_cmplx_mag_q31() 151 acc1 = (q31_t) (((q63_t) imag * imag) >> 33); in arm_cmplx_mag_q31() 155 imag = *pSrc++; in arm_cmplx_mag_q31() 157 acc1 = (q31_t) (((q63_t) imag * imag) >> 33); in arm_cmplx_mag_q31() [all …]
|
D | arm_cmplx_mag_squared_f32.c | 83 float32_t real, imag; /* Temporary input variables */ in arm_cmplx_mag_squared_f32() local 110 imag = *pSrc++; in arm_cmplx_mag_squared_f32() 113 *pDst++ = (real * real) + (imag * imag); in arm_cmplx_mag_squared_f32() 128 float32_t real, imag; /* Temporary input variables */ in arm_cmplx_mag_squared_f32() local 186 imag = *pSrc++; in arm_cmplx_mag_squared_f32() 187 *pDst++ = (real * real) + (imag * imag); in arm_cmplx_mag_squared_f32() 190 imag = *pSrc++; in arm_cmplx_mag_squared_f32() 191 *pDst++ = (real * real) + (imag * imag); in arm_cmplx_mag_squared_f32() 194 imag = *pSrc++; in arm_cmplx_mag_squared_f32() 195 *pDst++ = (real * real) + (imag * imag); in arm_cmplx_mag_squared_f32() [all …]
|
D | arm_cmplx_mag_squared_f16.c | 112 _Float16 real, imag; /* Temporary input variables */ in arm_cmplx_mag_squared_f16() local 124 imag = *pSrc++; in arm_cmplx_mag_squared_f16() 125 *pDst++ = (real * real) + (imag * imag); in arm_cmplx_mag_squared_f16() 128 imag = *pSrc++; in arm_cmplx_mag_squared_f16() 129 *pDst++ = (real * real) + (imag * imag); in arm_cmplx_mag_squared_f16() 132 imag = *pSrc++; in arm_cmplx_mag_squared_f16() 133 *pDst++ = (real * real) + (imag * imag); in arm_cmplx_mag_squared_f16() 136 imag = *pSrc++; in arm_cmplx_mag_squared_f16() 137 *pDst++ = (real * real) + (imag * imag); in arm_cmplx_mag_squared_f16() 158 imag = *pSrc++; in arm_cmplx_mag_squared_f16() [all …]
|
D | arm_cmplx_mag_f32.c | 90 float32_t real, imag; /* Temporary variables to hold input values */ in arm_cmplx_mag_f32() local 145 imag = *pSrc++; in arm_cmplx_mag_f32() 148 arm_sqrt_f32((real * real) + (imag * imag), pDst++); in arm_cmplx_mag_f32() 162 float32_t real, imag; /* Temporary variables to hold input values */ in arm_cmplx_mag_f32() local 222 imag = *pSrc++; in arm_cmplx_mag_f32() 225 arm_sqrt_f32((real * real) + (imag * imag), pDst++); in arm_cmplx_mag_f32() 228 imag = *pSrc++; in arm_cmplx_mag_f32() 229 arm_sqrt_f32((real * real) + (imag * imag), pDst++); in arm_cmplx_mag_f32() 232 imag = *pSrc++; in arm_cmplx_mag_f32() 233 arm_sqrt_f32((real * real) + (imag * imag), pDst++); in arm_cmplx_mag_f32() [all …]
|
D | arm_cmplx_mag_f16.c | 177 _Float16 real, imag; /* Temporary variables to hold input values */ in arm_cmplx_mag_f16() local 189 imag = *pSrc++; in arm_cmplx_mag_f16() 192 arm_sqrt_f16((real * real) + (imag * imag), pDst++); in arm_cmplx_mag_f16() 195 imag = *pSrc++; in arm_cmplx_mag_f16() 196 arm_sqrt_f16((real * real) + (imag * imag), pDst++); in arm_cmplx_mag_f16() 199 imag = *pSrc++; in arm_cmplx_mag_f16() 200 arm_sqrt_f16((real * real) + (imag * imag), pDst++); in arm_cmplx_mag_f16() 203 imag = *pSrc++; in arm_cmplx_mag_f16() 204 arm_sqrt_f16((real * real) + (imag * imag), pDst++); in arm_cmplx_mag_f16() 225 imag = *pSrc++; in arm_cmplx_mag_f16() [all …]
|
D | arm_cmplx_mag_squared_q15.c | 120 q15_t real, imag; /* Temporary input variables */ in arm_cmplx_mag_squared_q15() local 152 imag = *pSrc++; in arm_cmplx_mag_squared_q15() 154 acc1 = ((q31_t) imag * imag); in arm_cmplx_mag_squared_q15() 159 imag = *pSrc++; in arm_cmplx_mag_squared_q15() 161 acc1 = ((q31_t) imag * imag); in arm_cmplx_mag_squared_q15() 165 imag = *pSrc++; in arm_cmplx_mag_squared_q15() 167 acc1 = ((q31_t) imag * imag); in arm_cmplx_mag_squared_q15() 171 imag = *pSrc++; in arm_cmplx_mag_squared_q15() 173 acc1 = ((q31_t) imag * imag); in arm_cmplx_mag_squared_q15() 203 imag = *pSrc++; in arm_cmplx_mag_squared_q15() [all …]
|
D | arm_cmplx_mag_q15.c | 120 q15_t real, imag; /* Temporary input variables */ in arm_cmplx_mag_q15() local 152 imag = *pSrc++; in arm_cmplx_mag_q15() 154 acc1 = ((q31_t) imag * imag); in arm_cmplx_mag_q15() 160 imag = *pSrc++; in arm_cmplx_mag_q15() 162 acc1 = ((q31_t) imag * imag); in arm_cmplx_mag_q15() 166 imag = *pSrc++; in arm_cmplx_mag_q15() 168 acc1 = ((q31_t) imag * imag); in arm_cmplx_mag_q15() 172 imag = *pSrc++; in arm_cmplx_mag_q15() 174 acc1 = ((q31_t) imag * imag); in arm_cmplx_mag_q15() 204 imag = *pSrc++; in arm_cmplx_mag_q15() [all …]
|
/third_party/python/Lib/test/ |
D | test_complex.py | 29 unittest.TestCase.assertAlmostEqual(self, a.imag, b.imag) 32 unittest.TestCase.assertAlmostEqual(self, a.imag, 0.) 36 unittest.TestCase.assertAlmostEqual(self, 0., b.imag) 78 self.assertCloseAbs(x.imag, y.imag, eps) 116 self.assertTrue(isnan(z.imag)) 167 def check(n, deltas, is_equal, imag = 0.0): argument 170 z = complex(i, imag) 260 for imag in values: 261 with self.subTest(real=real, imag=imag): 262 c = complex(real, imag) [all …]
|
D | test_cmath.py | 99 self.assertFloatIdentical(x.imag, y.imag) 161 self.assertEqual(cmath.inf.imag, 0.0) 163 self.assertEqual(cmath.infj.imag, math.inf) 166 self.assertEqual(cmath.nan.imag, 0.0) 168 self.assertTrue(math.isnan(cmath.nanj.imag)) 325 self.assertEqual(0., z.imag) 332 self.assertEqual(0., z.imag) 351 return cmath.rect(z.real, z.imag) 394 actual = complex(abs(actual.real), actual.imag) 395 expected = complex(abs(expected.real), expected.imag) [all …]
|
D | cmath_testcases.txt | 37 -- ignore-imag-sign : indicates that the sign of the imaginary part 214 acos1018 acos inf nan -> nan inf ignore-imag-sign 215 acos1019 acos -inf nan -> nan inf ignore-imag-sign 540 asin1014 asin -inf nan -> nan inf ignore-imag-sign 549 asin1023 asin inf nan -> nan inf ignore-imag-sign 882 atan1012 atan -inf nan -> -1.5707963267948966 0.0 ignore-imag-sign 893 atan1023 atan inf nan -> 1.5707963267948966 0.0 ignore-imag-sign 1558 sqrt1017 sqrt -inf nan -> nan inf ignore-imag-sign 1679 exp1022 exp -inf inf -> 0.0 0.0 ignore-real-sign ignore-imag-sign 1681 exp1024 exp -inf nan -> 0.0 0.0 ignore-real-sign ignore-imag-sign [all …]
|
D | test_abstract_numbers.py | 14 self.assertEqual(0, int(7).imag) 25 self.assertEqual(0, float(7.3).imag)
|
D | test_bool.py | 348 self.assertEqual(True.imag, 0) 350 self.assertIs(type(True.imag), int) 352 self.assertEqual(False.imag, 0) 354 self.assertIs(type(False.imag), int)
|
/third_party/ffmpeg/libavfilter/ |
D | af_afftfilt.c | 46 AVExpr **imag; member 167 s->imag = av_calloc(inlink->channels, sizeof(*s->imag)); in config_input() 168 if (!s->imag) in config_input() 198 ret = av_expr_parse(&s->imag[ch], arg ? arg : last_expr, var_names, in config_input() 297 fi = av_expr_eval(s->imag[ch], values, s); in filter_frame() 451 av_expr_free(s->imag[i]); in uninit() 455 av_freep(&s->imag); in uninit()
|
D | af_afir.c | 310 double div, real_num = 0., imag_num = 0., real = 0., imag = 0.; in draw_response() local 314 imag += sin(-x * w) * src[x]; in draw_response() 319 mag[i] = hypot(real, imag); in draw_response() 320 phase[i] = atan2(imag, real); in draw_response() 321 div = real * real + imag * imag; in draw_response() 322 delay[i] = (real_num * real + imag_num * imag) / div; in draw_response()
|
/third_party/libsnd/src/ |
D | mat4.c | 208 int rows, cols, imag ; in mat4_read_header() local 229 psf_binheader_readf (psf, "444", &rows, &cols, &imag) ; in mat4_read_header() 231 …psf_log_printf (psf, " Rows : %d\n Cols : %d\n Imag : %s\n", rows, cols, imag ? "True" : "False… in mat4_read_header() 259 psf_binheader_readf (psf, "444", &rows, &cols, &imag) ; in mat4_read_header() 261 …psf_log_printf (psf, " Rows : %d\n Cols : %d\n Imag : %s\n", rows, cols, imag ? "True" : "False… in mat4_read_header()
|
/third_party/typescript/tests/baselines/reference/ |
D | tsxTypeErrors.types | 31 var e1 = <imag src="bar.jpg" /> 33 ><imag src="bar.jpg" /> : error 34 >imag : any
|
D | tsxTypeErrors.js | 13 var e1 = <imag src="bar.jpg" /> 45 var e1 = <imag src="bar.jpg"/>;
|
/third_party/python/Include/ |
D | complexobject.h | 12 double imag; member 47 PyAPI_FUNC(PyObject *) PyComplex_FromDoubles(double real, double imag);
|
/third_party/PyYAML/lib/yaml/ |
D | representer.py | 275 if data.imag == 0.0: 278 data = '%rj' % data.imag 279 elif data.imag > 0: 280 data = '%r+%rj' % (data.real, data.imag) 282 data = '%r%rj' % (data.real, data.imag)
|
/third_party/python/Doc/c-api/ |
D | complex.rst | 33 double imag; 111 .. c:function:: PyObject* PyComplex_FromDoubles(double real, double imag) 113 Return a new :c:type:`PyComplexObject` object from *real* and *imag*.
|
/third_party/python/Lib/ |
D | numbers.py | 64 def imag(self): member in Complex 256 def imag(self): member in Real
|
/third_party/python/Doc/library/ |
D | cmath.rst | 30 part* ``z.real`` and its *imaginary part* ``z.imag``. In other 33 z == z.real + z.imag*1j 48 float. ``phase(x)`` is equivalent to ``math.atan2(x.imag, 53 sign of the result is the same as the sign of ``x.imag``, even when 54 ``x.imag`` is zero::
|