/cmsis-dsp-latest/ |
D | PythonWrapper_README.md | 3 This is a Python wrapper for the Arm open source [CMSIS-DSP](https://github.com/ARM-software/CMSIS-… 5 …he CMSIS-DSP is available on our [GitHub](https://github.com/ARM-software/CMSIS-DSP) or as a [CMSI… 7 … idea is to follow as closely as possible the C [CMSIS-DSP](https://github.com/ARM-software/CMSIS-… 9 … tested and developed in a Python environment and then easily converted to a C implementation runn… 20 The building of this package has been tested on Windows with the Python install from python.org and… 22 It has also been tested with `cygwin`. In that case, `python-devel` must be installed too. On Mac, … 28 Python 3 must be used. 34 It is advised to do it in a Python virtual environment. Then, in the virtual environment you can ju… 38 …ncies like `NumPy`) and you should have a compiler which can be found by Python when building the … 40 DSP examples are available in the [CMSIS-DSP PythonWrapper examples](https://github.com/ARM-softwar… [all …]
|
D | setup.py | 18 version_path = os.path.join(PYTHON_MOD,"version.py") 29 cflags = ["-DWIN","-DCMSISDSP","-DUNALIGNED_SUPPORT_DISABLE"] 31 …cflags = ["-Wno-attributes","-Wno-unused-function","-Wno-unused-variable","-Wno-implicit-function-… 87 # A next version will have to structure this wrapper more cleanly so that the 137 flagsForCommonWithoutFFT=["-DARM_DSP_CONFIG_TABLES", 138 "-DARM_FAST_ALLOW_TABLES", 139 "-DARM_ALL_FAST_TABLES"] 162 print('setup.py: Error: This package only supports Python 3.', file=sys.stderr) 166 version = __version__, 168 description = 'CMSIS-DSP Python API', [all …]
|
D | README.md | 1 # CMSIS-DSP 3 …-releases)](https://img.shields.io/github/v/release/ARM-software/CMSIS-DSP?include_prereleases) . [all …]
|
/cmsis-dsp-latest/.github/workflows/ |
D | runtest.yaml | 11 security-events: write 16 fail-fast: false 19 runs-on: ubuntu-latest 22 - name: Checkout 25 - name: Setup Python 3.10 26 uses: actions/setup-python@v5 28 python-version: '3.10' 30 cache-dependency-path: Testing/requirements.txt 32 - name: Install system packages 34 sudo add-apt-repository ppa:deadsnakes/ppa [all …]
|
D | runcpptest.yaml | 11 security-events: write 16 fail-fast: false 21 runs-on: ubuntu-latest 24 - name: Checkout 27 - name: Setup Python 3.10 28 uses: actions/setup-python@v5 30 python-version: '3.10' 32 cache-dependency-path: Testing/requirements.txt 34 - name: Install system packages 36 sudo add-apt-repository ppa:deadsnakes/ppa [all …]
|
/cmsis-dsp-latest/Testing/ |
D | README.md | 13 You need `Python 3` and the following Python packages: 20 Once you have cloned the right version and installed the Python packages, you need to generate some… 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\… [all …]
|
/cmsis-dsp-latest/Source/TransformFunctions/ |
D | arm_mfcc_init_f16.c | 1 /* ---------------------------------------------------------------------- 4 * Description: MFCC initialization function for the f16 version 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 16 * Licensed under the Apache License, Version 2.0 (the License); you may 20 * www.apache.org/licenses/LICENSE-2.0 74 The folder Scripts is containing a Python script that can be used 84 If you use CMSIS-DSP as a static library, and if you know the MFCC sizes [all …]
|
D | arm_mfcc_init_f32.c | 1 /* ---------------------------------------------------------------------- 4 * Description: MFCC initialization function for the f32 version 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 16 * Licensed under the Apache License, Version 2.0 (the License); you may 20 * www.apache.org/licenses/LICENSE-2.0 74 The folder Scripts is containing a Python script which can be used 84 If you use CMSIS-DSP as a static library, and if you know the MFCC sizes [all …]
|
D | arm_mfcc_init_q15.c | 1 /* ---------------------------------------------------------------------- 4 * Description: MFCC initialization function for the q15 version 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 16 * Licensed under the Apache License, Version 2.0 (the License); you may 20 * www.apache.org/licenses/LICENSE-2.0 73 The folder Scripts is containing a Python script which can be used 83 If you use CMSIS-DSP as a static library, and if you know the MFCC sizes [all …]
|
D | arm_mfcc_init_q31.c | 1 /* ---------------------------------------------------------------------- 4 * Description: MFCC initialization function for the q31 version 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 16 * Licensed under the Apache License, Version 2.0 (the License); you may 20 * www.apache.org/licenses/LICENSE-2.0 74 The folder Scripts is containing a Python script which can be used 84 If you use CMSIS-DSP as a static library, and if you know the MFCC sizes [all …]
|
/cmsis-dsp-latest/PythonWrapper/examples/ |
D | example_1_5.py | 1 # New functions for version 1.5 of the Python wrapper 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 [all …]
|
D | example_1_6.py | 1 # New functions for version 1.5 of the Python wrapper 23 assert_allclose(ref,t,rtol=2e-6)
|
D | cmsisdsp_tests.ipynb | 8 "# CMSIS-DSP Python package example" 39 …atisfied: cmsisdsp in c:\\benchresults\\pythonwrappertests\\testenv\\lib\\site-packages (1.2.1)\n", 40 …ied: numpy>=1.19 in c:\\benchresults\\pythonwrappertests\\testenv\\lib\\site-packages (from cmsisd… 41 …ied: jinja2>=3.0 in c:\\benchresults\\pythonwrappertests\\testenv\\lib\\site-packages (from cmsisd… 42 …d: networkx>=2.5 in c:\\benchresults\\pythonwrappertests\\testenv\\lib\\site-packages (from cmsisd… 43 …fied: sympy>=1.6 in c:\\benchresults\\pythonwrappertests\\testenv\\lib\\site-packages (from cmsisd… 44 ….0 in c:\\benchresults\\pythonwrappertests\\testenv\\lib\\site-packages (from jinja2>=3.0->cmsisds… 45 ….19 in c:\\benchresults\\pythonwrappertests\\testenv\\lib\\site-packages (from sympy>=1.6->cmsisds… 90 "### Conversion functions to use CMSIS-DSP FFTs with complex numbers" 98 …"CMSIS-DSP FFTs are processing array of complex numbers which are represented in memory asan arra… [all …]
|
D | example_1_4.py | 1 # New functions for version 1.4 of the Python wrapper 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))
|
/cmsis-dsp-latest/Documentation/Doxygen/src/ |
D | mainpage.md | 5 …ary, a suite of common compute processing functions for use on Cortex-M and Cortex-A processor bas… 9 - \ref groupMath "Basic math functions" 10 - \ref groupFastMath "Fast math functions" 11 - \ref groupCmplxMath "Complex math functions" 12 - \ref groupFilters "Filtering functions" 13 - \ref groupMatrix "Matrix functions" 14 - \ref groupTransforms "Transform functions" 15 - \ref groupController "Motor control functions" 16 - \ref groupStats "Statistical functions" 17 - \ref groupSupport "Support functions" [all …]
|
/cmsis-dsp-latest/PythonWrapper/cmsisdsp_pkg/src/ |
D | cmsisdsp_module.h | 1 /* ---------------------------------------------------------------------- 2 * Project: CMSIS DSP Python Wrapper 4 * Description: C code for the CMSIS-DSP Python wrapper 9 * Target Processor: Cortex-M cores 10 * -------------------------------------------------------------------- */ 12 * Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved. 14 * SPDX-License-Identifier: Apache-2.0 16 * Licensed under the Apache License, Version 2.0 (the License); you may 20 * www.apache.org/licenses/LICENSE-2.0 34 // Check it is built with right version [all …]
|
D | cmsisdsp_bayes.c | 1 /* ---------------------------------------------------------------------- 2 * Project: CMSIS DSP Python Wrapper 4 * Description: C code for the CMSIS-DSP Python wrapper 9 * Target Processor: Cortex-M cores 10 * -------------------------------------------------------------------- */ 12 * Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved. 14 * SPDX-License-Identifier: Apache-2.0 16 * Licensed under the Apache License, Version 2.0 (the License); you may 20 * www.apache.org/licenses/LICENSE-2.0 50 if (self->instance) in arm_gaussian_naive_bayes_instance_f32_dealloc() [all …]
|
D | cmsisdsp_quaternion.c | 1 /* ---------------------------------------------------------------------- 2 * Project: CMSIS DSP Python Wrapper 4 * Description: C code for the CMSIS-DSP Python wrapper 9 * Target Processor: Cortex-M cores 10 * -------------------------------------------------------------------- */ 12 * Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved. 14 * SPDX-License-Identifier: Apache-2.0 16 * Licensed under the Apache License, Version 2.0 (the License); you may 20 * www.apache.org/licenses/LICENSE-2.0 334 Py_VISIT(GETSTATE(m)->error); in cmsisdsp_traverse() [all …]
|
D | cmsisdsp_distance.c | 1 /* ---------------------------------------------------------------------- 2 * Project: CMSIS DSP Python Wrapper 4 * Description: C code for the CMSIS-DSP Python wrapper 9 * Target Processor: Cortex-M cores 10 * -------------------------------------------------------------------- */ 12 * Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved. 14 * SPDX-License-Identifier: Apache-2.0 16 * Licensed under the Apache License, Version 2.0 (the License); you may 20 * www.apache.org/licenses/LICENSE-2.0 395 Py_VISIT(GETSTATE(m)->error); in cmsisdsp_traverse() [all …]
|
D | cmsisdsp_fastmath.c | 1 /* ---------------------------------------------------------------------- 2 * Project: CMSIS DSP Python Wrapper 4 * Description: C code for the CMSIS-DSP Python wrapper 9 * Target Processor: Cortex-M cores 10 * -------------------------------------------------------------------- */ 12 * Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved. 14 * SPDX-License-Identifier: Apache-2.0 16 * Licensed under the Apache License, Version 2.0 (the License); you may 20 * www.apache.org/licenses/LICENSE-2.0 627 Py_VISIT(GETSTATE(m)->error); in cmsisdsp_traverse() [all …]
|
D | cmsisdsp_svm.c | 1 /* ---------------------------------------------------------------------- 2 * Project: CMSIS DSP Python Wrapper 4 * Description: C code for the CMSIS-DSP Python wrapper 9 * Target Processor: Cortex-M cores 10 * -------------------------------------------------------------------- */ 12 * Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved. 14 * SPDX-License-Identifier: Apache-2.0 16 * Licensed under the Apache License, Version 2.0 (the License); you may 20 * www.apache.org/licenses/LICENSE-2.0 54 if (self->instance) \ [all …]
|
/cmsis-dsp-latest/Testing/FrameworkInclude/ |
D | Test.h | 1 /* ---------------------------------------------------------------------- 9 * Target Processor: Cortex-M cores 10 * -------------------------------------------------------------------- */ 12 * Copyright (C) 2010-2019 ARM Limited or its affiliates. All rights reserved. 14 * SPDX-License-Identifier: Apache-2.0 16 * Licensed under the Apache License, Version 2.0 (the License); you may 20 * www.apache.org/licenses/LICENSE-2.0 229 For format of output, refer to Python script. 230 The format must be coherent with the Python script 254 Used by Python script parsing the output. [all …]
|
/cmsis-dsp-latest/PythonWrapper/examples/kws_example/ |
D | appnodes.py | 9 # Target Processor: Cortex-M and Cortex-A cores 10 # -------------------------------------------------------------------- */ 12 # Copyright (C) 2010-2022 ARM Limited or its affiliates. All rights reserved. 14 # SPDX-License-Identifier: Apache-2.0 16 # Licensed under the Apache License, Version 2.0 (the License); you may 20 # www.apache.org/licenses/LICENSE-2.0 43 if i[0] == -1: 71 # Same implementation as the one in the python notebook 74 …# Negate can saturate so we use CMSIS-DSP function which is working on array (and we have a scalar) 78 f=w[:-1] [all …]
|
D | kws.ipynb | 8 "# Simple keyword spotting with CMSIS-DSP Python wrapper and Arduino" 16 …"The goal of this notebook is to demonstrate how to use the CMSIS-DSP Python wrapper on an example… 20 … "But it is a good start and enough to demonstrate lots of features of the Python wrapper like:\n", 22 "* Testing the CMSIS-DSP algorithm directly in Python\n", 24 …"* Implementation of the compute graph and streaming computation from the CMSIS-DSP Synchronous Da… 34 …"Several Python packages are required. If they are not already installed on you system, you can in… 38 …"The machine learning is using scikit-learn. For scientific computations, we are using SciPy, NumP… 97 …"You can add other keywords but the CMSIS-DSP implementation in this notebook is only supporting o… 120 …"The below code is generating a label ID for a command. The ID will be -1 for any command not in t… 130 "UNKNOWN_CLASS = -1\n", [all …]
|
/cmsis-dsp-latest/PythonWrapper/examples/kws_example/kws/ |
D | AppNodes.h | 1 /* ---------------------------------------------------------------------- 8 * Target Processor: Cortex-M and Cortex-A cores 9 * -------------------------------------------------------------------- */ 11 * Copyright (C) 2010-2022 ARM Limited or its affiliates. All rights reserved. 13 * SPDX-License-Identifier: Apache-2.0 15 * Licensed under the Apache License, Version 2.0 (the License); you may 19 * www.apache.org/licenses/LICENSE-2.0 41 // Buffer to read samples into, each sample is 16-bits 63 q15_t *b=this->getReadBuffer(); in run() 65 if (b[0]==-1) in run() [all …]
|