/cmsis-dsp-latest/Testing/Source/Tests/ |
D | WindowTestsF64.cpp | 18 float64_t *outp=output.ptr(); in test_welch_f64() 20 arm_welch_f64(outp,output.nbSamples()); in test_welch_f64() 22 ASSERT_EMPTY_TAIL(output); in test_welch_f64() 24 ASSERT_SNR(output,ref,(float64_t)SNR_THRESHOLD); in test_welch_f64() 26 ASSERT_CLOSE_ERROR(output,ref,ABS_ERROR,REL_ERROR); in test_welch_f64() 31 float64_t *outp=output.ptr(); in test_bartlett_f64() 33 arm_bartlett_f64(outp,output.nbSamples()); in test_bartlett_f64() 35 ASSERT_EMPTY_TAIL(output); in test_bartlett_f64() 37 ASSERT_SNR(output,ref,(float64_t)SNR_THRESHOLD); in test_bartlett_f64() 39 ASSERT_CLOSE_ERROR(output,ref,ABS_ERROR,REL_ERROR); in test_bartlett_f64() [all …]
|
D | WindowTestsF32.cpp | 18 float32_t *outp=output.ptr(); in test_welch_f32() 20 arm_welch_f32(outp,output.nbSamples()); in test_welch_f32() 22 ASSERT_EMPTY_TAIL(output); in test_welch_f32() 24 ASSERT_SNR(output,ref,(float32_t)SNR_THRESHOLD); in test_welch_f32() 26 ASSERT_CLOSE_ERROR(output,ref,ABS_ERROR,REL_ERROR); in test_welch_f32() 31 float32_t *outp=output.ptr(); in test_bartlett_f32() 33 arm_bartlett_f32(outp,output.nbSamples()); in test_bartlett_f32() 35 ASSERT_EMPTY_TAIL(output); in test_bartlett_f32() 37 ASSERT_SNR(output,ref,(float32_t)SNR_THRESHOLD); in test_bartlett_f32() 39 ASSERT_CLOSE_ERROR(output,ref,ABS_ERROR,REL_ERROR); in test_bartlett_f32() [all …]
|
D | QuaternionTestsF32.cpp | 21 float32_t *outp=output.ptr(); in test_quaternion_norm_f32() 23 arm_quaternion_norm_f32(inp1,outp,output.nbSamples()); in test_quaternion_norm_f32() 25 ASSERT_EMPTY_TAIL(output); in test_quaternion_norm_f32() 27 ASSERT_SNR(output,ref,(float32_t)SNR_THRESHOLD); in test_quaternion_norm_f32() 29 ASSERT_CLOSE_ERROR(output,ref,ABS_ERROR,REL_ERROR); in test_quaternion_norm_f32() 36 float32_t *outp=output.ptr(); in test_quaternion_inverse_f32() 40 ASSERT_EMPTY_TAIL(output); in test_quaternion_inverse_f32() 42 ASSERT_SNR(output,ref,(float32_t)SNR_THRESHOLD); in test_quaternion_inverse_f32() 44 ASSERT_CLOSE_ERROR(output,ref,ABS_ERROR,REL_ERROR); in test_quaternion_inverse_f32() 51 float32_t *outp=output.ptr(); in test_quaternion_conjugate_f32() [all …]
|
D | FastMathF16.cpp | 29 float16_t *outp = output.ptr(); 37 ASSERT_SNR(ref,output,(float16_t)SNR_THRESHOLD); 38 ASSERT_CLOSE_ERROR(ref,output,ABS_ERROR,REL_ERROR); 45 float16_t *outp = output.ptr(); 53 ASSERT_SNR(ref,output,(float16_t)SNR_THRESHOLD); 54 ASSERT_CLOSE_ERROR(ref,output,ABS_ERROR,REL_ERROR); 63 float16_t *outp = output.ptr(); in test_atan2_scalar_f16() 77 ASSERT_SNR(ref,output,(float16_t)SNR_ATAN2_THRESHOLD); in test_atan2_scalar_f16() 78 ASSERT_CLOSE_ERROR(ref,output,ABS_ERROR_ATAN,REL_ERROR_ATAN); in test_atan2_scalar_f16() 86 float16_t *outp = output.ptr(); in test_sqrt_f16() [all …]
|
D | SupportTestsF32.cpp | 20 float32_t *outp = output.ptr(); in test_weighted_average_f32() 27 ASSERT_EMPTY_TAIL(output); in test_weighted_average_f32() 34 float32_t *outp = output.ptr(); in test_copy_f32() 40 ASSERT_EQ(input,output); in test_copy_f32() 41 ASSERT_EMPTY_TAIL(output); in test_copy_f32() 47 float32_t *outp = output.ptr(); in test_fill_f32() 59 ASSERT_EMPTY_TAIL(output); in test_fill_f32() 121 float32_t *outp = output.ptr(); in test_bitonic_sort_out_f32() 128 ASSERT_EMPTY_TAIL(output); in test_bitonic_sort_out_f32() 130 ASSERT_EQ(output,ref); in test_bitonic_sort_out_f32() [all …]
|
D | ComplexTestsF16.cpp | 12 float16_t *outp=output.ptr(); in test_cmplx_conj_f16() 17 ASSERT_EMPTY_TAIL(output); in test_cmplx_conj_f16() 19 ASSERT_SNR(output,ref,(float16_t)SNR_THRESHOLD); in test_cmplx_conj_f16() 21 ASSERT_REL_ERROR(output,ref,REL_ERROR); in test_cmplx_conj_f16() 33 float16_t *outp=output.ptr(); in test_cmplx_dot_prod_f16() 40 ASSERT_SNR(output,ref,(float16_t)SNR_THRESHOLD); in test_cmplx_dot_prod_f16() 42 ASSERT_REL_ERROR(output,ref,REL_ERROR); in test_cmplx_dot_prod_f16() 44 ASSERT_EMPTY_TAIL(output); in test_cmplx_dot_prod_f16() 50 float16_t *outp=output.ptr(); in test_cmplx_mag_f16() 54 ASSERT_EMPTY_TAIL(output); in test_cmplx_mag_f16() [all …]
|
D | ComplexTestsF32.cpp | 12 float32_t *outp=output.ptr(); in test_cmplx_conj_f32() 17 ASSERT_EMPTY_TAIL(output); in test_cmplx_conj_f32() 19 ASSERT_SNR(output,ref,(float32_t)SNR_THRESHOLD); in test_cmplx_conj_f32() 21 ASSERT_REL_ERROR(output,ref,REL_ERROR); in test_cmplx_conj_f32() 33 float32_t *outp=output.ptr(); in test_cmplx_dot_prod_f32() 40 ASSERT_SNR(output,ref,(float32_t)SNR_THRESHOLD); in test_cmplx_dot_prod_f32() 42 ASSERT_REL_ERROR(output,ref,REL_ERROR); in test_cmplx_dot_prod_f32() 44 ASSERT_EMPTY_TAIL(output); in test_cmplx_dot_prod_f32() 50 float32_t *outp=output.ptr(); in test_cmplx_mag_f32() 54 ASSERT_EMPTY_TAIL(output); in test_cmplx_mag_f32() [all …]
|
D | FastMathF32.cpp | 28 float32_t *outp = output.ptr(); in test_atan2_scalar_f32() 43 ASSERT_CLOSE_ERROR(ref,output,ABS_ERROR_ATAN,REL_ERROR_ATAN); in test_atan2_scalar_f32() 51 float32_t *outp = output.ptr(); in test_cos_f32() 59 ASSERT_SNR(ref,output,(float32_t)SNR_THRESHOLD); in test_cos_f32() 60 ASSERT_CLOSE_ERROR(ref,output,ABS_ERROR,REL_ERROR); in test_cos_f32() 67 float32_t *outp = output.ptr(); in test_sin_f32() 75 ASSERT_SNR(ref,output,(float32_t)SNR_THRESHOLD); in test_sin_f32() 76 ASSERT_CLOSE_ERROR(ref,output,ABS_ERROR,REL_ERROR); in test_sin_f32() 83 float32_t *outp = output.ptr(); in test_sqrt_f32() 94 ASSERT_SNR(ref,output,(float32_t)SNR_THRESHOLD); in test_sqrt_f32() [all …]
|
D | ComplexTestsQ15.cpp | 24 q15_t *outp=output.ptr(); in test_cmplx_conj_q15() 28 ASSERT_EMPTY_TAIL(output); in test_cmplx_conj_q15() 31 ASSERT_SNR(output,ref,(float32_t)SNR_THRESHOLD); in test_cmplx_conj_q15() 33 ASSERT_NEAR_EQ(output,ref,ABS_ERROR_Q15); in test_cmplx_conj_q15() 63 q15_t *outp=output.ptr(); in test_cmplx_mag_q15() 67 ASSERT_EMPTY_TAIL(output); in test_cmplx_mag_q15() 69 ASSERT_SNR(output,ref,(float32_t)SNR_MAG_THRESHOLD); in test_cmplx_mag_q15() 71 ASSERT_NEAR_EQ(output,ref,MAG_ERROR_Q15); in test_cmplx_mag_q15() 78 q15_t *outp=output.ptr(); in test_cmplx_mag_fast_q15() 82 ASSERT_EMPTY_TAIL(output); in test_cmplx_mag_fast_q15() [all …]
|
D | FastMathQ15.cpp | 29 q15_t *outp = output.ptr(); in test_vlog_q15() 33 ASSERT_SNR(ref,output,(float32_t)SNR_THRESHOLD); in test_vlog_q15() 34 ASSERT_NEAR_EQ(ref,output,LOG_ABS_ERROR); in test_vlog_q15() 35 ASSERT_EMPTY_TAIL(output); in test_vlog_q15() 42 q15_t *outp = output.ptr(); in test_atan2_scalar_q15() 56 ASSERT_SNR(ref,output,(q15_t)SNR_THRESHOLD); in test_atan2_scalar_q15() 57 ASSERT_NEAR_EQ(ref,output,ABS_ATAN_ERROR); in test_atan2_scalar_q15() 65 q15_t *outp = output.ptr(); in test_division_q15() 77 ASSERT_SNR(ref,output,(float32_t)SNR_THRESHOLD); in test_division_q15() 78 ASSERT_NEAR_EQ(ref,output,DIV_ERROR); in test_division_q15() [all …]
|
D | FastMathQ31.cpp | 28 q31_t *outp = output.ptr(); in test_atan2_scalar_q31() 41 ASSERT_SNR(ref,output,(q31_t)SNR_THRESHOLD); in test_atan2_scalar_q31() 42 ASSERT_NEAR_EQ(ref,output,ABS_ATAN_ERROR); in test_atan2_scalar_q31() 48 q31_t *outp = output.ptr(); in test_vlog_q31() 53 ASSERT_SNR(ref,output,(float32_t)SNR_THRESHOLD); in test_vlog_q31() 54 ASSERT_NEAR_EQ(ref,output,LOG_ABS_ERROR); in test_vlog_q31() 55 ASSERT_EMPTY_TAIL(output); in test_vlog_q31() 63 q31_t *outp = output.ptr(); in test_division_q31() 76 ASSERT_SNR(ref,output,(float32_t)SNR_THRESHOLD); in test_division_q31() 77 ASSERT_NEAR_EQ(ref,output,ABS_DIV_ERROR); in test_division_q31() [all …]
|
D | ComplexTestsF64.cpp | 51 float64_t *outp=output.ptr(); in test_cmplx_mag_f64() 55 ASSERT_EMPTY_TAIL(output); in test_cmplx_mag_f64() 57 ASSERT_SNR(output,ref,(float64_t)SNR_THRESHOLD); in test_cmplx_mag_f64() 59 ASSERT_REL_ERROR(output,ref,REL_ERROR); in test_cmplx_mag_f64() 65 float64_t *outp=output.ptr(); in test_cmplx_mag_squared_f64() 69 ASSERT_EMPTY_TAIL(output); in test_cmplx_mag_squared_f64() 72 ASSERT_SNR(output,ref,(float64_t)SNR_THRESHOLD); in test_cmplx_mag_squared_f64() 74 ASSERT_REL_ERROR(output,ref,REL_ERROR); in test_cmplx_mag_squared_f64() 81 float64_t *outp=output.ptr(); in test_cmplx_mult_cmplx_f64() 85 ASSERT_EMPTY_TAIL(output); in test_cmplx_mult_cmplx_f64() [all …]
|
D | StatsTestsF16.cpp | 31 float16_t *outp = output.ptr(); in test_max_f16() 57 float16_t *outp = output.ptr(); in test_absmax_f16() 82 float16_t *outp = output.ptr(); in test_max_no_idx_f16() 102 float16_t *outp = output.ptr(); in test_absmax_no_idx_f16() 122 float16_t *outp = output.ptr(); in test_min_no_idx_f16() 142 float16_t *outp = output.ptr(); in test_absmin_no_idx_f16() 165 float16_t *outp = output.ptr(); in test_min_f16() 191 float16_t *outp = output.ptr(); in test_absmin_f16() 215 float16_t *outp = output.ptr(); in test_mean_f16() 237 float16_t *outp = output.ptr(); in test_power_f16() [all …]
|
D | StatsTestsF32.cpp | 26 float32_t *outp = output.ptr(); in test_max_f32() 52 float32_t *outp = output.ptr(); in test_absmax_f32() 76 float32_t *outp = output.ptr(); in test_max_no_idx_f32() 96 float32_t *outp = output.ptr(); in test_absmax_no_idx_f32() 116 float32_t *outp = output.ptr(); in test_min_no_idx_f32() 136 float32_t *outp = output.ptr(); in test_absmin_no_idx_f32() 158 float32_t *outp = output.ptr(); in test_min_f32() 184 float32_t *outp = output.ptr(); in test_absmin_f32() 208 float32_t *outp = output.ptr(); in test_mean_f32() 230 float32_t *outp = output.ptr(); in test_power_f32() [all …]
|
D | BasicTestsF16.cpp | 21 float16_t *outp=output.ptr(); 29 ASSERT_EMPTY_TAIL(output); in test_add_f16() 31 ASSERT_SNR(output,ref,(float16_t)SNR_THRESHOLD); in test_add_f16() 33 ASSERT_REL_ERROR(output,ref,REL_ERROR); in test_add_f16() 40 float16_t *outp=output.ptr(); in test_clip_f16() 44 ASSERT_EMPTY_TAIL(output); in test_clip_f16() 46 ASSERT_SNR(output,ref,(float16_t)SNR_THRESHOLD); in test_clip_f16() 48 ASSERT_REL_ERROR(output,ref,REL_ERROR); in test_clip_f16() 59 ASSERT_EMPTY_TAIL(output); in test_sub_f16() 61 ASSERT_SNR(output,ref,(float16_t)SNR_THRESHOLD); in test_sub_f16() [all …]
|
D | BasicTestsF32.cpp | 18 float32_t *outp=output.ptr(); 26 ASSERT_EMPTY_TAIL(output); in test_add_f32() 28 ASSERT_SNR(output,ref,(float32_t)SNR_THRESHOLD); in test_add_f32() 30 ASSERT_REL_ERROR(output,ref,REL_ERROR); in test_add_f32() 37 float32_t *outp=output.ptr(); in test_clip_f32() 41 ASSERT_EMPTY_TAIL(output); in test_clip_f32() 43 ASSERT_SNR(output,ref,(float32_t)SNR_THRESHOLD); in test_clip_f32() 45 ASSERT_REL_ERROR(output,ref,REL_ERROR); in test_clip_f32() 55 ASSERT_EMPTY_TAIL(output); in test_sub_f32() 57 ASSERT_SNR(output,ref,(float32_t)SNR_THRESHOLD); in test_sub_f32() [all …]
|
D | ComplexTestsQ31.cpp | 20 q31_t *outp=output.ptr(); in test_cmplx_conj_q31() 24 ASSERT_EMPTY_TAIL(output); in test_cmplx_conj_q31() 27 ASSERT_SNR(output,ref,(float32_t)SNR_THRESHOLD); in test_cmplx_conj_q31() 29 ASSERT_NEAR_EQ(output,ref,ABS_ERROR_Q31); in test_cmplx_conj_q31() 59 q31_t *outp=output.ptr(); in test_cmplx_mag_q31() 63 ASSERT_EMPTY_TAIL(output); in test_cmplx_mag_q31() 65 ASSERT_SNR(output,ref,(float32_t)SNR_THRESHOLD); in test_cmplx_mag_q31() 67 ASSERT_NEAR_EQ(output,ref,ABS_ERROR_Q31); in test_cmplx_mag_q31() 74 q31_t *outp=output.ptr(); in test_cmplx_mag_squared_q31() 78 ASSERT_EMPTY_TAIL(output); in test_cmplx_mag_squared_q31() [all …]
|
D | StatsTestsF64.cpp | 26 float64_t *outp = output.ptr(); in test_max_f64() 52 float64_t *outp = output.ptr(); in test_absmax_f64() 76 float64_t *outp = output.ptr(); in test_max_no_idx_f64() 96 float64_t *outp = output.ptr(); in test_absmax_no_idx_f64() 116 float64_t *outp = output.ptr(); in test_min_no_idx_f64() 136 float64_t *outp = output.ptr(); in test_absmin_no_idx_f64() 158 float64_t *outp = output.ptr(); in test_min_f64() 184 float64_t *outp = output.ptr(); in test_absmin_f64() 208 float64_t *outp = output.ptr(); in test_mean_f64() 230 float64_t *outp = output.ptr(); in test_power_f64() [all …]
|
D | BasicTestsQ7.cpp | 15 q7_t *outp=output.ptr(); 28 ASSERT_EMPTY_TAIL(output); in test_add_q7() 30 ASSERT_SNR(output,ref,(float32_t)SNR_THRESHOLD); in test_add_q7() 32 ASSERT_NEAR_EQ(output,ref,ABS_ERROR_Q7); in test_add_q7() 39 q7_t *outp=output.ptr(); in test_clip_q7() 43 ASSERT_EMPTY_TAIL(output); in test_clip_q7() 45 ASSERT_SNR(output,ref,(float32_t)SNR_THRESHOLD); in test_clip_q7() 47 ASSERT_NEAR_EQ(output,ref,ABS_ERROR_Q7); in test_clip_q7() 57 ASSERT_EMPTY_TAIL(output); in test_sub_q7() 59 ASSERT_SNR(output,ref,(float32_t)SNR_THRESHOLD); in test_sub_q7() [all …]
|
D | FastMathF64.cpp | 77 float64_t *outp = output.ptr(); in test_vlog_f64() 81 ASSERT_SNR(ref,output,(float64_t)SNR_THRESHOLD); in test_vlog_f64() 82 ASSERT_CLOSE_ERROR(ref,output,ABS_ERROR,REL_ERROR); in test_vlog_f64() 83 ASSERT_EMPTY_TAIL(output); in test_vlog_f64() 90 float64_t *outp = output.ptr(); in test_vexp_f64() 94 ASSERT_SNR(ref,output,(float64_t)SNR_THRESHOLD); in test_vexp_f64() 95 ASSERT_CLOSE_ERROR(ref,output,ABS_ERROR,REL_ERROR); in test_vexp_f64() 96 ASSERT_EMPTY_TAIL(output); in test_vexp_f64() 110 output.create(ref.nbSamples(),FastMathF64::OUT_F64_ID,mgr); in setUp() 119 output.create(ref.nbSamples(),FastMathF64::OUT_F64_ID,mgr); in setUp() [all …]
|
D | BasicTestsQ15.cpp | 23 q15_t *outp=output.ptr(); 37 ASSERT_EMPTY_TAIL(output); in test_add_q15() 39 ASSERT_SNR(output,ref,(float32_t)SNR_THRESHOLD); in test_add_q15() 41 ASSERT_NEAR_EQ(output,ref,ABS_ERROR_Q15); in test_add_q15() 48 q15_t *outp=output.ptr(); in test_clip_q15() 52 ASSERT_EMPTY_TAIL(output); in test_clip_q15() 54 ASSERT_SNR(output,ref,(float32_t)SNR_THRESHOLD); in test_clip_q15() 56 ASSERT_NEAR_EQ(output,ref,ABS_ERROR_Q15); in test_clip_q15() 66 ASSERT_EMPTY_TAIL(output); in test_sub_q15() 68 ASSERT_SNR(output,ref,(float32_t)SNR_THRESHOLD); in test_sub_q15() [all …]
|
D | BasicTestsQ31.cpp | 21 q31_t *outp=output.ptr(); 35 ASSERT_EMPTY_TAIL(output); in test_add_q31() 37 ASSERT_SNR(output,ref,(float32_t)SNR_THRESHOLD); in test_add_q31() 39 ASSERT_NEAR_EQ(output,ref,ABS_ERROR_Q31); in test_add_q31() 46 q31_t *outp=output.ptr(); in test_clip_q31() 50 ASSERT_EMPTY_TAIL(output); in test_clip_q31() 52 ASSERT_SNR(output,ref,(float32_t)SNR_THRESHOLD); in test_clip_q31() 54 ASSERT_NEAR_EQ(output,ref,ABS_ERROR_Q31); in test_clip_q31() 64 ASSERT_EMPTY_TAIL(output); in test_sub_q31() 66 ASSERT_SNR(output,ref,(float32_t)SNR_THRESHOLD); in test_sub_q31() [all …]
|
D | SupportTestsF16.cpp | 28 float16_t *outp = output.ptr(); in test_weighted_average_f16() 34 ASSERT_EMPTY_TAIL(output); in test_weighted_average_f16() 42 float16_t *outp = output.ptr(); in test_copy_f16() 48 ASSERT_EQ(input,output); in test_copy_f16() 49 ASSERT_EMPTY_TAIL(output); in test_copy_f16() 55 float16_t *outp = output.ptr(); in test_fill_f16() 67 ASSERT_EMPTY_TAIL(output); in test_fill_f16() 116 float16_t *outp = output.ptr(); in test_q15_f16() 122 ASSERT_REL_ERROR(ref,output,REL_Q15_ERROR); in test_q15_f16() 123 ASSERT_EMPTY_TAIL(output); in test_q15_f16() [all …]
|
D | BasicTestsF64.cpp | 18 float64_t *outp=output.ptr(); 26 ASSERT_EMPTY_TAIL(output); in test_add_f64() 28 ASSERT_SNR(output,ref,(float64_t)SNR_THRESHOLD); in test_add_f64() 30 ASSERT_REL_ERROR(output,ref,REL_ERROR); in test_add_f64() 56 ASSERT_EMPTY_TAIL(output); in test_sub_f64() 58 ASSERT_SNR(output,ref,(float64_t)SNR_THRESHOLD); in test_sub_f64() 60 ASSERT_REL_ERROR(output,ref,REL_ERROR); in test_sub_f64() 70 ASSERT_EMPTY_TAIL(output); in test_mult_f64() 72 ASSERT_SNR(output,ref,(float64_t)SNR_THRESHOLD); in test_mult_f64() 74 ASSERT_REL_ERROR(output,ref,REL_ERROR); in test_mult_f64() [all …]
|
D | StatsTestsQ15.cpp | 32 q15_t *outp = output.ptr(); in test_max_q15() 56 q15_t *outp = output.ptr(); in test_max_no_idx_q15() 76 q15_t *outp = output.ptr(); in test_absmax_no_idx_q15() 98 q15_t *outp = output.ptr(); in test_absmax_q15() 124 q15_t *outp = output.ptr(); in test_min_q15() 148 q15_t *outp = output.ptr(); in test_min_no_idx_q15() 168 q15_t *outp = output.ptr(); in test_absmin_no_idx_q15() 190 q15_t *outp = output.ptr(); in test_absmin_q15() 214 q15_t *outp = output.ptr(); in test_mean_q15() 258 q15_t *outp = output.ptr(); in test_rms_q15() [all …]
|