/AliOS-Things-master/components/py_engine/engine/py/ |
A D | modcmath.c | 35 mp_float_t real, imag; in mp_cmath_phase() local 43 mp_float_t real, imag; in mp_cmath_polar() local 46 mp_obj_new_float(MICROPY_FLOAT_C_FUN(sqrt)(real * real + imag * imag)), in mp_cmath_polar() 63 mp_float_t real, imag; in mp_cmath_exp() local 73 mp_float_t real, imag; in mp_cmath_log() local 75 …T_CONST(0.5) * MICROPY_FLOAT_C_FUN(log)(real * real + imag * imag), MICROPY_FLOAT_C_FUN(atan2)(ima… in mp_cmath_log() 82 mp_float_t real, imag; in mp_cmath_log10() local 91 mp_float_t real, imag; in mp_cmath_sqrt() local 93 …mp_float_t sqrt_abs = MICROPY_FLOAT_C_FUN(pow)(real * real + imag * imag, MICROPY_FLOAT_CONST(0.25… in mp_cmath_sqrt() 101 mp_float_t real, imag; in mp_cmath_cos() local [all …]
|
A D | objcomplex.c | 42 mp_float_t imag; member 65 if (o->imag >= 0 || isnan(o->imag)) { in complex_print() 97 mp_float_t real, imag; in complex_make_new() local 102 imag = 0; in complex_make_new() 108 imag += real2; in complex_make_new() 110 imag += mp_obj_get_float(args[1]); in complex_make_new() 112 return mp_obj_new_complex(real, imag); in complex_make_new() 129 … return mp_obj_new_float(MICROPY_FLOAT_C_FUN(sqrt)(o->real * o->real + o->imag * o->imag)); in complex_unary_op() 149 dest[0] = mp_obj_new_float(self->imag); in complex_attr() 168 o->imag = imag; in mp_obj_new_complex() [all …]
|
A D | obj.c | 374 bool mp_obj_get_complex_maybe(mp_obj_t arg, mp_float_t *real, mp_float_t *imag) { in mp_obj_get_complex_maybe() argument 377 *imag = 0; in mp_obj_get_complex_maybe() 380 *imag = 0; in mp_obj_get_complex_maybe() 383 *imag = 0; in mp_obj_get_complex_maybe() 387 *imag = 0; in mp_obj_get_complex_maybe() 391 *imag = 0; in mp_obj_get_complex_maybe() 393 mp_obj_complex_get(arg, real, imag); in mp_obj_get_complex_maybe() 400 void mp_obj_get_complex(mp_obj_t arg, mp_float_t *real, mp_float_t *imag) { in mp_obj_get_complex() argument 401 if (!mp_obj_get_complex_maybe(arg, real, imag)) { in mp_obj_get_complex()
|
A D | parsenum.c | 199 bool imag = false; in mp_parse_num_decimal() local 284 imag = true; in mp_parse_num_decimal() 340 if (imag) { in mp_parse_num_decimal() 346 if (imag || force_complex) { in mp_parse_num_decimal()
|
A D | obj.h | 739 mp_obj_t mp_obj_new_complex(mp_float_t real, mp_float_t imag); 793 void mp_obj_get_complex(mp_obj_t self_in, mp_float_t *real, mp_float_t *imag); 794 bool mp_obj_get_complex_maybe(mp_obj_t self_in, mp_float_t *real, mp_float_t *imag); 888 void mp_obj_complex_get(mp_obj_t self_in, mp_float_t *real, mp_float_t *imag);
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/cmsis-dsp/Source/ComplexMathFunctions/ |
A D | arm_cmplx_mag_squared_q31.c | 76 imag = *pSrc++; in arm_cmplx_mag_squared_q31() 78 acc1 = (q31_t) (((q63_t) imag * imag) >> 33); in arm_cmplx_mag_squared_q31() 83 imag = *pSrc++; in arm_cmplx_mag_squared_q31() 85 acc1 = (q31_t) (((q63_t) imag * imag) >> 33); in arm_cmplx_mag_squared_q31() 90 imag = *pSrc++; in arm_cmplx_mag_squared_q31() 92 acc1 = (q31_t) (((q63_t) imag * imag) >> 33); in arm_cmplx_mag_squared_q31() 97 imag = *pSrc++; in arm_cmplx_mag_squared_q31() 99 acc1 = (q31_t) (((q63_t) imag * imag) >> 33); in arm_cmplx_mag_squared_q31() 115 imag = *pSrc++; in arm_cmplx_mag_squared_q31() 117 acc1 = (q31_t) (((q63_t) imag * imag) >> 33); in arm_cmplx_mag_squared_q31() [all …]
|
A D | arm_cmplx_mag_squared_q15.c | 114 …q15_t real, imag; /* Temporary variables to store real and imaginary … in arm_cmplx_mag_squared_q15() local 120 imag = *pSrc++; in arm_cmplx_mag_squared_q15() 122 acc1 = (imag * imag); in arm_cmplx_mag_squared_q15()
|
A D | arm_cmplx_mag_q15.c | 117 q15_t real, imag; /* Temporary variables to hold input values */ in arm_cmplx_mag_q15() local 123 imag = *pSrc++; in arm_cmplx_mag_q15() 126 acc1 = (imag * imag); in arm_cmplx_mag_q15()
|
A D | arm_cmplx_mag_squared_f32.c | 78 …float32_t real, imag; /* Temporary variables to store real and imaginary … in arm_cmplx_mag_squared_f32() local 191 imag = *pSrc++; in arm_cmplx_mag_squared_f32() 195 *pDst++ = (real * real) + (imag * imag); in arm_cmplx_mag_squared_f32()
|
A D | arm_cmplx_mag_q31.c | 58 q31_t real, imag; /* Temporary variables to hold input values */ in arm_cmplx_mag_q31() local 160 imag = *pSrc++; in arm_cmplx_mag_q31() 162 acc1 = (q31_t) (((q63_t) imag * imag) >> 33); in arm_cmplx_mag_q31()
|
/AliOS-Things-master/components/py_engine/tests/float/ |
A D | complex1.py | 31 print("%.5g %.5g" % (ans.real, ans.imag)) 33 print("%.5g %.5g" % (ans.real, ans.imag)) 35 print("%.5g %.5g" % (ans.real, ans.imag)) 37 print("%.5g %.5g" % (ans.real, ans.imag)) 39 print("%.5g %.5g" % (ans.real, ans.imag)) 65 print("%.5g %.5g" % (ans.real, ans.imag)) 67 print("%.5g %.5g" % (ans.real, ans.imag)) 77 (1j).imag = 0
|
A D | complex1_intbig.py | 5 print("%.5g %.5g" % (ans.real, ans.imag))
|
A D | int_big_float.py | 19 print("%.5g" % (i * 1.2j).imag)
|
A D | cmath_fun_special.py | 32 print("complex(%.4g, %.4g)" % (ret.real, ret.imag))
|
A D | cmath_fun.py | 59 print("complex(%.5g, %.5g)" % (real, ret.imag))
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/experimental/microfrontend/lib/ |
A D | filterbank.c | 30 const int32_t imag = fft_output->imag; in FilterbankConvertFftComplexToEnergy() local 32 const uint32_t mag_squared = (real * real) + (imag * imag); in FilterbankConvertFftComplexToEnergy()
|
A D | fft_test.cc | 48 TF_LITE_MICRO_EXPECT_EQ(state.output[i].imag, expected[i].imag); in TF_LITE_MICRO_TEST()
|
A D | fft.h | 27 int16_t imag; member
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/experimental/mlir/testing/op_tests/ |
A D | imag.py | 41 out = tf.math.imag(input_tensor)
|
/AliOS-Things-master/components/py_engine/adapter/haas/ |
A D | _frozen_mpy.c | 21 mp_float_t imag; member
|
/AliOS-Things-master/components/py_engine/adapter/haas510/ |
A D | _frozen_mpy.c | 21 mp_float_t imag; member
|
/AliOS-Things-master/components/py_engine/adapter/haas600/ |
A D | _frozen_mpy.c | 21 mp_float_t imag; member
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/experimental/mlir/testing/ |
A D | generate_examples.py | 46 from tensorflow.lite.experimental.mlir.testing.op_tests.imag import make_imag_tests
|
A D | build_def.bzl | 42 "imag",
|
/AliOS-Things-master/components/py_engine/engine/tools/ |
A D | mpy-tool.py | 343 % (obj_name, obj.real, obj.imag)
|