/cmsis-dsp-latest/dsppp/tests/ |
D | cmsisdsp.cpp | 422 // Doing nothing since there is no equivalent CMSIS-DSP in cmsisdsp_mat_add() 458 mve_pred16_t p0 = vctp32q(c-col); in _cmsis_outer() 478 mve_pred16_t p0 = vctp16q(c-col); in _cmsis_outer() 500 mve_pred16_t p0 = vctp32q(c-col); in _cmsis_outer() 521 mve_pred16_t p0 = vctp16q(c-col); in _cmsis_outer() 542 mve_pred16_t p0 = vctp8q(c-col); in _cmsis_outer() 552 const float32_t householder_pattern_4[4] = {-0.45143621, -1. , 0.07823104, 0.56856041}; 553 const float32_t householder_pattern_16[16] ={ 0.5122637 , -0.86917937, -0.19042511, 0.46574409, 0… 554 -0.19945171, 0.12364709, 0.56458161, -1. , -0.46570847, 555 0.37724627, -0.68176618, 0.66132393, -0.27301838, -0.30102456, [all …]
|
/cmsis-dsp-latest/PythonWrapper/examples/ |
D | testdsp5.py | 19 a=np.array([1.,-3.,4.,0.,-10.,8.]) 46 a=np.array([1.,-3.,4.,0.5,-10.,8.]) 62 assert r==-10 66 assert i==-10 70 assert i==-10 78 a[0] =[0., 0., -0.951057] 80 a[2] =[-0.850651, 0., -0.425325] 82 a[4] =[0.688191, -0.5, -0.425325] 83 a[5] =[0.688191, 0.5, -0.425325] 84 a[6] =[-0.688191, -0.5, 0.425325] [all …]
|
D | example_1_10.py | 23 w = ik -1; 24 w = 1 - w**2 170 assert_allclose(ref,wf32,rtol=1e-6,atol=2e-6) 178 assert_allclose(ref,wf32,rtol=1e-6,atol=2e-6) 186 assert_allclose(ref,wf32,rtol=1e-6,atol=2e-6) 194 assert_allclose(ref,wf32,rtol=1e-6,atol=2e-6) 202 assert_allclose(ref,wf32,rtol=1e-6,atol=2e-6) 210 assert_allclose(ref,wf32,rtol=1e-6,atol=2e-6) 218 assert_allclose(ref,wf32,rtol=1e-6,atol=2e-6) 226 assert_allclose(ref,wf32,rtol=1e-6,atol=2e-6) [all …]
|
D | example_1_11.py | 69 query=np.array([ 0.08387197, 0.68082274, 1.06756417, 0.88914541, 0.42513398, -0.3259053, 70 -0.80934885, -0.90979435, -0.64026483, 0.06923695]) 72 template=np.array([ 1.00000000e+00, 7.96326711e-04, -9.99998732e-01, -2.38897811e-03, 73 9.99994927e-01]) 96 distance=abs(a-b).astype(np.float32) 128 referenceCost=np.array([[9.1612804e-01, 9.9920368e-01, nan, nan, 130 [1.2353053e+00, 1.6792301e+00, nan, nan, 132 [1.3028694e+00, 2.3696373e+00, 4.4372001e+00, nan, 134 [nan, 3.0795674e+00, 4.9687119e+00, nan, 136 [nan, 3.5039051e+00, 4.9290380e+00, 5.3565612e+00, [all …]
|
D | testdistance.py | 14 return(1.0*(ctf + cft - ctt+n)/(cft + ctf + n)) 17 print("\nBray-Curtis") 22 assert_allclose(ref,res,1e-6) 30 assert_allclose(ref,res,1e-6) 37 assert_allclose(ref,res,1e-6) 41 assert_allclose(ref,res,1e-10) 48 assert_allclose(ref,res,1e-6) 52 assert_allclose(ref,res,1e-10) 59 assert_allclose(ref,res,1e-6) 66 assert_allclose(ref,res,1e-6) [all …]
|
D | example_1_4.py | 41 print(np.isclose(ref,resf32,1e-6,1e-6)) 50 print(np.isclose(ref,resq31,1e-8,1e-8)) 59 print(np.isclose(ref,resq15,1e-3,1e-3)) 66 err = a - b 82 print(np.isclose(ref,resf64,1e-14,1e-14)) 87 print(np.isclose(ref,resf32,1e-7,1e-7)) 95 print(np.isclose(ref,resQ31,1e-7,1e-7)) 105 print(np.isclose(ref,resQ15,1e-4,1e-4)) 115 print(np.isclose(ref,resQ7,1e-2,1e-2))
|
D | mfccdebugdata.py | 2 debug=np.array([ 0.65507051 ,-0.94647589 ,0.00627239 ,0.14151286 ,-0.10863318 ,-0.36370327 3 ,0.05777126 ,-0.11915792 ,0.50183546 ,-0.31461335 ,0.66440771 ,0.05389963 4 ,0.39690544 ,0.25424852 ,-0.17045277 ,0.09649268 ,0.87357385 ,-0.44666372 5 ,-0.02637822 ,-0.10055151 ,-0.14610252 ,-0.05981251 ,-0.02999124 ,0.60923213 6 ,0.10530095 ,0.35684248 ,0.21845946 ,0.47845017 ,-0.60206979 ,0.25186908 7 ,-0.27410056 ,-0.07080467 ,-0.05109539 ,-0.2666572 ,0.25483105 ,-0.86459185 8 ,0.07733397 ,-0.58535444 ,0.06230904 ,-0.04161475 ,-0.17467296 ,0.77721125 9 ,-0.01728161 ,-0.32141218 ,0.36674466 ,-0.17932843 ,0.78486115 ,0.12469579 10 ,-0.94796877 ,0.05536031 ,0.32627676 ,0.46628512 ,-0.02585836 ,-0.51439834 11 ,0.21387904 ,0.16319442 ,-0.01020818 ,-0.77161183 ,0.07754634 ,-0.24970455 [all …]
|
D | example_1_5.py | 12 def householder(x,eps=1e-16): 29 beta = -math.sqrt(alpha*alpha + xnorm2) 31 r = (alpha - beta) 33 tau = (beta - alpha) / beta 58 print(np.isclose(betaRef,betaF32,1e-6,1e-6)) 59 print(np.isclose(vRef,vF32,1e-6,1e-6)) 63 print(np.isclose(betaRef,betaF64,1e-6,1e-6)) 64 print(np.isclose(vRef,vF64,1e-6,1e-6)) 71 a = a / np.max(np.abs(a)) * 1.0e-7 81 def checkOrtho(A,err=1e-10): [all …]
|
D | testrfft_all.py | 22 def chop(A, eps = 1e-6): 31 conjPart = res[nb:nb//2:-1].conj() 63 # Convert ref to CMSIS-DSP format 66 referenceFloat[0::2] = np.real(ref)[:-1] 67 referenceFloat[1::2] = np.imag(ref)[:-1] 74 referenceFloat[1] = np.real(ref[-1]) 101 assert_allclose(invref,result,atol=1e-15) 115 assert_allclose(referenceFloat,result,rtol=3e-6) 125 assert_allclose(invref,result,atol=1e-7) 147 assert_allclose(referenceFixed,resultF,rtol=1e-6,atol=1e-6) [all …]
|
/cmsis-dsp-latest/Source/DistanceFunctions/ |
D | arm_dtw_distance_f32.c | 2 /* ---------------------------------------------------------------------- 5 * Description: Bray-Curtis distance between two vectors 10 * Target Processor: Cortex-M and Cortex-A cores 11 * -------------------------------------------------------------------- */ 13 * Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved. 15 * SPDX-License-Identifier: Apache-2.0 21 * www.apache.org/licenses/LICENSE-2.0 35 #define E(MAT,R,C) \ macro 36 (*((MAT)->pData + (MAT)->numCols*(R) + (C))) 40 ((*((pWindow)->pData + (pWindow)->numCols*(R) + (C)))==1)) [all …]
|
/cmsis-dsp-latest/dsppp/Include/dsppp/ |
D | unroll.hpp | 1 // -*- C++ -*- 23 template<typename ... E> 27 using ScalarResult = std::tuple<typename traits<std::remove_reference_t<E>>::Scalar...>; 30 constexpr explicit Merged(const E& ... values) : vals { values ...} { } in Merged() 47 return val_impl(i,std::make_index_sequence<sizeof...(E)>()); in operator []() 51 return val_impl(i,std::make_index_sequence<sizeof...(E)>()); in operator []() 56 …using Vector = std::tuple<typename vector_traits<typename traits<std::remove_reference_t<E>>::Scal… 66 vector_store_impl(i,val,std::make_index_sequence<sizeof...(E)>()); in vector_store() 79 vector_store_tail_impl(i,remaining,val,std::make_index_sequence<sizeof...(E)>()); in vector_store_tail() 92 return(vector_op_impl(i,std::make_index_sequence<sizeof...(E)>())); in vector_op() [all …]
|
/cmsis-dsp-latest/dsppp/Include/dsppp/num_features/ |
D | group.hpp | 1 // -*- C++ -*- 17 * @tparam E Datatype for all numbers 19 template<typename ... E> 20 struct number_traits<std::tuple<E...>> 29 typedef std::tuple<typename number_traits<E>::accumulator...> accumulator; 32 typedef std::tuple<typename number_traits<E>::compute_type...> compute_type; 39 static std::tuple<typename number_traits<E>::accumulator...> one() in one() 41 return(std::make_tuple(vector_traits<E>::one()...)); in one() 48 Assume that all E are using the same scalar type or coherent types 59 * @tparam E List of vector dataypes [all …]
|
/cmsis-dsp-latest/Testing/cmsis_build/ |
D | check.bat | 3 python ..\processResult.py -f ..\Output.pickle -e -r results_m0p.txt -html > m0p.html 6 python ..\processResult.py -f ..\Output.pickle -e -r results_m23.txt -html > m23.html 9 python ..\processResult.py -f ..\Output.pickle -e -r results_m3.txt -html > m3.html 12 python ..\processResult.py -f ..\Output.pickle -e -r results_m4.txt -html > m4.html 15 python ..\processResult.py -f ..\Output.pickle -e -r results_m7.txt -html > m7.html 18 python ..\processResult.py -f ..\Output.pickle -e -r results_m7_unrolled.txt -html > m7_unrolled.h… 21 python ..\processResult.py -f ..\Output.pickle -e -r results_m33.txt -html > m33.html 24 python ..\processResult.py -f ..\Output.pickle -e -r results_cs300.txt -html > cs300.html 27 python ..\processResult.py -f ..\Output.pickle -e -r results_cs300_u55.txt -html > cs300_u55.html 30 python ..\processResult.py -f ..\Output.pickle -e -r results_cs310.txt -html > cs310.html
|
D | quicktest.bat | 4 python processTests.py -f Output.pickle -e UnaryTestsF32 8 REM cbuild "test.Release+VHT-Corstone-300.cprj" 10 …orstone_SSE-300_Ethos-U55.exe -f configs/ARM_VHT_Corstone_300_config.txt -a cpu0="out\test\VHT-Cor… 12 REM python ..\processResult.py -f ..\Output.pickle -e -r results_cs300_u55.txt 19 REM C:\Keil_v5\ARM\VHT_11.18.29\VHT_MPS2_Cortex-M7.exe -f configs/ARM_VHT_MPS2_M7DP_config.txt out\… 21 REM python ..\processResult.py -f ..\Output.pickle -e -r results_m7_unrolled.txt 28 C:\Keil_v5\ARM\VHT_11.18.29\VHT_MPS2_Cortex-M0plus.exe -f configs/ARM_VHT_MPS2_M0plus_config.txt ou… 30 python ..\processResult.py -f ..\Output.pickle -e -r results_m0p.txt 37 REM C:\Keil_v5\ARM\VHT_11.18.29\VHT_MPS2_Cortex-M55.exe -f configs/ARM_VHT_MPS2_M55_config.txt -a c… 39 REM python ..\processResult.py -f ..\Output.pickle -e -r results_m55.txt
|
/cmsis-dsp-latest/Documentation/Doxygen/ |
D | gen_doc.sh | 3 # Date: 2023-11-06 4 # This bash script generates CMSIS-DSP Documentation: 6 # Pre-requisites: 7 # - bash shell (for Windows: install git for Windows) 8 # - doxygen 1.9.6 9 # - linkchecker (can be skipped with -s) 11 set -o pipefail 14 # For available versions see https://github.com/Open-CMSIS-Pack/gen-pack/tags. 15 # Use the tag name without the prefix "v", e.g., 0.7.0 18 DIRNAME=$(dirname "$(readlink -f "$0")") [all …]
|
/cmsis-dsp-latest/Source/FilteringFunctions/ |
D | arm_levinson_durbin_q31.c | 1 /* ---------------------------------------------------------------------- 9 * Target Processor: Cortex-M and Cortex-A cores 10 * -------------------------------------------------------------------- */ 12 * Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved. 14 * SPDX-License-Identifier: Apache-2.0 20 * www.apache.org/licenses/LICENSE-2.0 64 // 1 / (h + l) = 1 / h (1 - l / h) in divide() 68 // 1 / h (1 - l / h) in divide() 70 // 1 / h (2 - (l + h) / h) in divide() 71 // 1 / h (2 - d / h) in divide() [all …]
|
D | arm_levinson_durbin_f32.c | 1 /* ---------------------------------------------------------------------- 9 * Target Processor: Cortex-M and Cortex-A cores 10 * -------------------------------------------------------------------- */ 12 * Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved. 14 * SPDX-License-Identifier: Apache-2.0 20 * www.apache.org/licenses/LICENSE-2.0 68 float32_t e; in arm_levinson_durbin_f32() local 73 e = phi[0] - phi[1] * a[0]; in arm_levinson_durbin_f32() 90 pRevPhi = &phi[p-3]; in arm_levinson_durbin_f32() 105 pRevPhi -= 4; in arm_levinson_durbin_f32() [all …]
|
D | arm_levinson_durbin_f16.c | 1 /* ---------------------------------------------------------------------- 9 * Target Processor: Cortex-M and Cortex-A cores 10 * -------------------------------------------------------------------- */ 12 * Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved. 14 * SPDX-License-Identifier: Apache-2.0 20 * www.apache.org/licenses/LICENSE-2.0 65 _Float16 e; in arm_levinson_durbin_f16() local 70 e = (_Float16)phi[0] - (_Float16)phi[1] * (_Float16)a[0]; in arm_levinson_durbin_f16() 87 pRevPhi = &phi[p-7]; in arm_levinson_durbin_f16() 102 pRevPhi -= 8; in arm_levinson_durbin_f16() [all …]
|
D | arm_lms_norm_f32.c | 1 /* ---------------------------------------------------------------------- 4 * Description: Processing function for the floating-point NLMS filter 9 * Target Processor: Cortex-M and Cortex-A cores 10 * -------------------------------------------------------------------- */ 12 * Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved. 14 * SPDX-License-Identifier: Apache-2.0 20 * www.apache.org/licenses/LICENSE-2.0 41 …y contains normalized LMS filter functions that operate on Q15, Q31, and floating-point data types. 60 The functions operate on a block-by-block basis. 61 Internally, the filter coefficients <code>b[n]</code> are updated on a sample-by-sample basis. [all …]
|
/cmsis-dsp-latest/Include/ |
D | arm_vec_math.h | 6 * Target Processor: Cortex-M and Cortex-A cores 9 * Copyright (c) 2010-2021 Arm Limited or its affiliates. All rights reserved. 11 * SPDX-License-Identifier: Apache-2.0 17 * www.apache.org/licenses/LICENSE-2.0 55 m = 0x3F800000 - (xinv.i & 0x7F800000); in vrecip_medprec_f32() 57 xinv.f = 1.41176471f - 0.47058824f * xinv.f; in vrecip_medprec_f32() 60 b = 2.0f - xinv.f * ax; in vrecip_medprec_f32() 63 b = 2.0f - xinv.f * ax; in vrecip_medprec_f32() 66 b = 2.0f - xinv.f * ax; in vrecip_medprec_f32() 89 m = 0x3F800000 - (xinv.i & 0x7F800000); in vrecip_hiprec_f32() [all …]
|
/cmsis-dsp-latest/Testing/cmsis_build/RTE/Device/ARMCM33/ |
D | partition_ARMCM33.h | 3 * @brief CMSIS-CORE Initial Setup for Secure / Non-Secure Zones for ARMCM33 8 * Copyright (c) 2009-2019 Arm Limited. All rights reserved. 10 * SPDX-License-Identifier: Apache-2.0 16 * www.apache.org/licenses/LICENSE-2.0 29 //-------- <<< Use Configuration Wizard in Context Menu >>> ----------------- 33 // <e>Initialize Security Attribution Unit (SAU) CTRL register 39 // <i> Value for SAU->CTRL register bit ENABLE 46 // <1=> All Memory is Non-Secure 47 // <i> Value for SAU->CTRL register bit ALLNS 48 // <i> When all Memory is Non-Secure (ALLNS is 1), IDAU can override memory map configuration. [all …]
|
/cmsis-dsp-latest/Testing/cmsis_build/RTE/Device/ARMCM55/ |
D | partition_ARMCM55.h | 3 * @brief CMSIS-CORE Initial Setup for Secure / Non-Secure Zones for Armv8.1-M Mainline 10 * SPDX-License-Identifier: Apache-2.0 16 * www.apache.org/licenses/LICENSE-2.0 29 //-------- <<< Use Configuration Wizard in Context Menu >>> ----------------- 33 // <e>Initialize Security Attribution Unit (SAU) CTRL register 39 // <i> Value for SAU->CTRL register bit ENABLE 46 // <1=> All Memory is Non-Secure 47 // <i> Value for SAU->CTRL register bit ALLNS 48 // <i> When all Memory is Non-Secure (ALLNS is 1), IDAU can override memory map configuration. 53 // </e> [all …]
|
/cmsis-dsp-latest/Testing/ |
D | README.md | 28 `python preprocess.py -f desc.txt` 30 `python preprocess.py -f desc_f16.txt -o Output_f16.pickle` 32 `python processTests.py -e` 34 `python processTests.py -e -f Output_f16.pickle` 38 `python processTests.py -e BasicTestsF32` 44 `python processTests.py -f Output_f16.pickle -e BasicTestsF16` 67 `cpackget add -f test_packlist.txt` 75 …_v5\ARM\VHT\VHT_Corstone_SSE-300_Ethos-U55.exe -f configs\ARM_VHT_Corstone_300_config.txt Objects\… 81 `python ../processResult.py -f ../Output.pickle -e -r results.txt` 275 Test A:testA -> PARAM3_ID [all …]
|
/cmsis-dsp-latest/Testing/Source/Tests/ |
D | DistanceTestsF32.cpp | 16 distances.numRows=this->queryLength; in test_dtw_distance_f32() 17 distances.numCols=this->templateLength; in test_dtw_distance_f32() 20 costs.numRows=this->queryLength; in test_dtw_distance_f32() 21 costs.numCols=this->templateLength; in test_dtw_distance_f32() 24 window.numRows=this->queryLength; in test_dtw_distance_f32() 25 window.numCols=this->templateLength; in test_dtw_distance_f32() 34 for(int i=0; i < this->nbPatterns ; i ++) in test_dtw_distance_f32() 37 for(int q=0; q < this->queryLength; q++) in test_dtw_distance_f32() 39 for(int t=0; t < this->templateLength; t++) in test_dtw_distance_f32() 41 *c = fabs(inpA[q] - inpB[t]); in test_dtw_distance_f32() [all …]
|
/cmsis-dsp-latest/Testing/PatternGeneration/ |
D | FastMath.py | 42 e = 0 46 e = 1.0 / (1<<31) 50 e = 1.0 / (1<<15) 54 e = 1.0 / (1<<7) 62 return(-1.0,0) 72 if abs(a/b) > 1 - e: 81 vals=np.linspace(np.float_power(2,-15),1.0,num=125) 83 vals=np.linspace(np.float_power(2,-10),1.0,num=125) 85 vals=np.linspace(np.float_power(2,-31),1.0,num=125) 106 a1=np.array([0,math.pi/4,math.pi/2,3*math.pi/4,math.pi,5*math.pi/4,3*math.pi/2,2*math.pi-1e-6]) [all …]
|