/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 …FLOAT_CONST(0.5) * MICROPY_FLOAT_C_FUN(log)(real * real + imag * imag), MICROPY_FLOAT_C_FUN(atan2)… 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 | 41 mp_float_t real; member 59 if (o->real == 0) { in complex_print() 97 mp_float_t real, imag; in complex_make_new() local 107 real -= imag2; 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() 147 dest[0] = mp_obj_new_float(self->real); in complex_attr() 167 o->real = real; in mp_obj_new_complex() 175 *real = self->real; in mp_obj_complex_get() 198 mp_float_t real; in mp_obj_complex_binary_op() local 202 lhs_real = real; in mp_obj_complex_binary_op() [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 376 *real = 0; in mp_obj_get_complex_maybe() 379 *real = 1; in mp_obj_get_complex_maybe() 382 *real = (mp_float_t)MP_OBJ_SMALL_INT_VALUE(arg); in mp_obj_get_complex_maybe() 386 *real = mp_obj_int_as_float_impl(arg); in mp_obj_get_complex_maybe() 390 *real = mp_obj_float_get(arg); 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()
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/cmsis-dsp/Source/ComplexMathFunctions/ |
A D | arm_cmplx_mag_squared_q31.c | 75 real = *pSrc++; in arm_cmplx_mag_squared_q31() 77 acc0 = (q31_t) (((q63_t) real * real) >> 33); in arm_cmplx_mag_squared_q31() 82 real = *pSrc++; in arm_cmplx_mag_squared_q31() 84 acc0 = (q31_t) (((q63_t) real * real) >> 33); in arm_cmplx_mag_squared_q31() 89 real = *pSrc++; in arm_cmplx_mag_squared_q31() 91 acc0 = (q31_t) (((q63_t) real * real) >> 33); in arm_cmplx_mag_squared_q31() 96 real = *pSrc++; in arm_cmplx_mag_squared_q31() 98 acc0 = (q31_t) (((q63_t) real * real) >> 33); in arm_cmplx_mag_squared_q31() 114 real = *pSrc++; in arm_cmplx_mag_squared_q31() 116 acc0 = (q31_t) (((q63_t) real * real) >> 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 119 real = *pSrc++; in arm_cmplx_mag_squared_q15() 121 acc0 = (real * real); 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 122 real = *pSrc++; in arm_cmplx_mag_q15() 125 acc0 = (real * real); 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 190 real = *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 159 real = *pSrc++; in arm_cmplx_mag_q31() 161 acc0 = (q31_t) (((q63_t) real * real) >> 33); in arm_cmplx_mag_q31()
|
/AliOS-Things-master/components/py_engine/tests/float/ |
A D | complex1.py | 28 print((1j / 2j).real) 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))
|
A D | cmath_fun.py | 56 real = ret.real 57 if abs(real) < 1e-6: 58 real = 0.0 variable 59 print("complex(%.5g, %.5g)" % (real, ret.imag))
|
A D | complex1_intbig.py | 5 print("%.5g %.5g" % (ans.real, ans.imag))
|
A D | cmath_fun_special.py | 32 print("complex(%.4g, %.4g)" % (ret.real, ret.imag))
|
/AliOS-Things-master/solutions/tflite_micro_speech_demo/micro_speech/simple_features/ |
A D | simple_features_generator.cc | 52 float real = 0; in CalculateDiscreteFourierTransform() local 54 real += time_series[j] * std::cos(j * i * kPi * 2 / time_series_size); in CalculateDiscreteFourierTransform() 61 fourier_output[(i * 2) + 0] = real; in CalculateDiscreteFourierTransform() 120 const float real = fourier_values[(i * 2) + 0]; in GenerateSimpleFeatures() local 122 power_spectrum[i] = (real * real) + (imaginary * imaginary); in GenerateSimpleFeatures()
|
/AliOS-Things-master/solutions/tflite_micro_speech_demo/micro_speech/simple_features/fixed_point/ |
A D | simple_features_generator.cc | 89 int32_t real = 0; in CalculateDiscreteFourierTransform() local 93 real += Q2_30_FixedMultiply_Q10_22(time_series[j], real_scale); in CalculateDiscreteFourierTransform() 101 fourier_output[(i * 2) + 0] = real; in CalculateDiscreteFourierTransform() 168 const int32_t real = fourier_values[(i * 2) + 0]; in GenerateSimpleFeatures() local 171 power_spectrum[i] = Q10_22_FixedMultiply_Q10_22(real, real) + in GenerateSimpleFeatures()
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/experimental/microfrontend/lib/ |
A D | filterbank.c | 29 const int32_t real = fft_output->real; in FilterbankConvertFftComplexToEnergy() local 32 const uint32_t mag_squared = (real * real) + (imag * imag); in FilterbankConvertFftComplexToEnergy()
|
A D | fft_test.cc | 47 TF_LITE_MICRO_EXPECT_EQ(state.output[i].real, expected[i].real); in TF_LITE_MICRO_TEST()
|
A D | fft.h | 26 int16_t real; member
|
/AliOS-Things-master/components/py_engine/tests/feature_check/ |
A D | README | 1 This directory doesn't contain real tests, but code snippets to detect
|
/AliOS-Things-master/hardware/chip/haas1000/drivers/scripts/ |
A D | lib.mk | 117 real-objs-y := $(foreach m, $(filter-out $(subdir-obj-y), $(obj-y)), $(if $(strip $($(m:.o=-objs)) … 127 real-objs-y := $(addprefix $(obj)/,$(real-objs-y))
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/experimental/mlir/testing/op_tests/ |
A D | real.py | 41 out = tf.math.real(input_tensor)
|
/AliOS-Things-master/components/py_engine/adapter/haas/ |
A D | _frozen_mpy.c | 20 mp_float_t real; member
|
/AliOS-Things-master/components/py_engine/adapter/haas510/ |
A D | _frozen_mpy.c | 20 mp_float_t real; member
|
/AliOS-Things-master/components/py_engine/adapter/haas600/ |
A D | _frozen_mpy.c | 20 mp_float_t real; member
|
/AliOS-Things-master/components/SDL2/docs/ |
A D | README-hg.md | 21 track commits in real time.
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/third_party/ruy/ruy/profiler/ |
A D | README.md | 8 Contrary to most typical profilers, what it samples is not real call stacks, but 147 other hand, in situations where one doesn't have such a-priori knowledge, a real 148 profiler such as Linux's "perf" allows to right away get a profile of real
|