Home
last modified time | relevance | path

Searched +full:- +full:a (Results 1 – 25 of 1131) sorted by relevance

12345678910>>...46

/cmsis-dsp-latest/Source/FilteringFunctions/
Darm_levinson_durbin_q31.c1 /* ----------------------------------------------------------------------
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
18 * You may obtain a copy of the License at
20 * www.apache.org/licenses/LICENSE-2.0
39 __STATIC_FORCEINLINE q31_t mul32x16(q31_t a, q15_t b) in mul32x16() argument
41 q31_t r = ((q63_t)a * (q63_t)b) >> 15; in mul32x16()
47 __STATIC_FORCEINLINE q31_t mul32x32(q31_t a, q31_t b) in mul32x32() argument
[all …]
Darm_levinson_durbin_f32.c1 /* ----------------------------------------------------------------------
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
18 * You may obtain a copy of the License at
20 * www.apache.org/licenses/LICENSE-2.0
48 @param[out] a autoregressive coefficients
64 float32_t *a, in arm_levinson_durbin_f32() argument
71 a[0] = phi[1] / phi[0]; in arm_levinson_durbin_f32()
[all …]
Darm_levinson_durbin_f16.c1 /* ----------------------------------------------------------------------
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
18 * You may obtain a copy of the License at
20 * www.apache.org/licenses/LICENSE-2.0
45 @param[out] a autoregressive coefficients
61 float16_t *a, in arm_levinson_durbin_f16() argument
68 a[0] = (_Float16)phi[1] / (_Float16)phi[0]; in arm_levinson_durbin_f16()
[all …]
/cmsis-dsp-latest/Include/dsp/
Dmatrix_utils.h6 * Target Processor: Cortex-M and Cortex-A cores
9 * Copyright (c) 2010-2022 Arm Limited or its affiliates. All rights reserved.
11 * SPDX-License-Identifier: Apache-2.0
15 * You may obtain a copy of the License at
17 * www.apache.org/licenses/LICENSE-2.0
41 #define ELEM(A,ROW,COL) &((A)->pData[(A)->numCols* (ROW) + (COL)]) argument
43 #define SCALE_COL_T(T,CAST,A,ROW,v,i) \ argument
46 T *data = (A)->pData; \
47 const int32_t _numCols = (A)->numCols; \
48 const int32_t nb = (A)->numRows - ROW;\
[all …]
/cmsis-dsp-latest/dsppp/tests/
Dmatrix_utils.h6 * Target Processor: Cortex-M and Cortex-A cores
9 * Copyright (c) 2010-2022 Arm Limited or its affiliates. All rights reserved.
11 * SPDX-License-Identifier: Apache-2.0
15 * You may obtain a copy of the License at
17 * www.apache.org/licenses/LICENSE-2.0
41 #define ELEM(A,ROW,COL) &((A)->pData[(A)->numCols* (ROW) + (COL)]) argument
43 #define SCALE_COL_T(T,CAST,A,ROW,v,i) \ argument
46 T *data = (A)->pData; \
47 const int32_t _numCols = (A)->numCols; \
48 const int32_t nb = (A)->numRows - ROW;\
[all …]
/cmsis-dsp-latest/Source/DistanceFunctions/
Darm_canberra_distance_f32.c2 /* ----------------------------------------------------------------------
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
19 * You may obtain a copy of the License at
21 * www.apache.org/licenses/LICENSE-2.0
64 f32x4_t a, b, c, accumV; in arm_canberra_distance_f32() local
70 a = vld1q(pA); in arm_canberra_distance_f32()
73 c = vabdq(a, b); in arm_canberra_distance_f32()
[all …]
Darm_canberra_distance_f16.c2 /* ----------------------------------------------------------------------
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
19 * You may obtain a copy of the License at
21 * www.apache.org/licenses/LICENSE-2.0
77 f16x8_t a, b, c, accumV; in arm_canberra_distance_f16() local
83 a = vld1q(pA); in arm_canberra_distance_f16()
86 c = vabdq(a, b); in arm_canberra_distance_f16()
[all …]
/cmsis-dsp-latest/Source/StatisticsFunctions/
Darm_power_f32.c1 /* ----------------------------------------------------------------------
4 * Description: Sum of the squares of the elements of a floating-point vector
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
18 * You may obtain a copy of the License at
20 * www.apache.org/licenses/LICENSE-2.0
42 …0] * pSrc[0] + pSrc[1] * pSrc[1] + pSrc[2] * pSrc[2] + ... + pSrc[blockSize-1] * pSrc[blockSize-1];
48 something which is more an energy than a power.
[all …]
Darm_var_q31.c1 /* ----------------------------------------------------------------------
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
18 * You may obtain a copy of the License at
20 * www.apache.org/licenses/LICENSE-2.0
41 @brief Variance of the elements of a Q31 vector.
47 The function is implemented using an internal 64-bit accumulator.
49 which yields 1.23, and intermediate multiplication yields a 2.46 format.
[all …]
Darm_var_q15.c1 /* ----------------------------------------------------------------------
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
18 * You may obtain a copy of the License at
20 * www.apache.org/licenses/LICENSE-2.0
41 @brief Variance of the elements of a Q15 vector.
47 The function is implemented using a 64-bit internal accumulator.
49 Intermediate multiplication yields a 2.30 format, and this
[all …]
Darm_accumulate_f32.c1 /* ----------------------------------------------------------------------
4 * Description: Sum value of a floating-point vector
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
18 * You may obtain a copy of the License at
20 * www.apache.org/licenses/LICENSE-2.0
42 @brief Accumulation value of a floating-point vector.
63 /* Compute 4 outputs at a time */ in arm_accumulate_f32()
[all …]
Darm_rms_f32.c1 /* ----------------------------------------------------------------------
4 * Description: Root mean square value of the elements of a floating-point vector
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
18 * You may obtain a copy of the License at
20 * www.apache.org/licenses/LICENSE-2.0
42 …qrt(((pSrc[0] * pSrc[0] + pSrc[1] * pSrc[1] + ... + pSrc[blockSize-1] * pSrc[blockSize-1]) / block…
54 @brief Root Mean Square of the elements of a floating-point vector.
[all …]
Darm_mean_f32.c1 /* ----------------------------------------------------------------------
4 * Description: Mean value of a floating-point vector
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
18 * You may obtain a copy of the License at
20 * www.apache.org/licenses/LICENSE-2.0
42 @brief Mean value of a floating-point vector.
61 /* Compute 4 outputs at a time */ in arm_mean_f32()
[all …]
Darm_std_q31.c1 /* ----------------------------------------------------------------------
4 * Description: Standard deviation of the elements of a Q31 vector
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
18 * You may obtain a copy of the License at
20 * www.apache.org/licenses/LICENSE-2.0
41 @brief Standard deviation of the elements of a Q31 vector.
47 The function is implemented using an internal 64-bit accumulator.
[all …]
Darm_var_f32.c1 /* ----------------------------------------------------------------------
4 * Description: Variance of the elements of a floating-point vector
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
18 * You may obtain a copy of the License at
20 * www.apache.org/licenses/LICENSE-2.0
39 The underlying algorithm used is the direct method sometimes referred to as the two-pass method:
42 Result = sum(element - meanOfElements)^2) / numElement - 1
[all …]
Darm_mean_q15.c1 /* ----------------------------------------------------------------------
4 * Description: Mean value of a Q15 vector
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
18 * You may obtain a copy of the License at
20 * www.apache.org/licenses/LICENSE-2.0
41 @brief Mean value of a Q15 vector.
47 The function is implemented using a 32-bit internal accumulator.
[all …]
Darm_power_q15.c1 /* ----------------------------------------------------------------------
4 * Description: Sum of the squares of the elements of a Q15 vector
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
18 * You may obtain a copy of the License at
20 * www.apache.org/licenses/LICENSE-2.0
41 @brief Sum of the squares of the elements of a Q15 vector.
47 The function is implemented using a 64-bit internal accumulator.
[all …]
Darm_power_q31.c1 /* ----------------------------------------------------------------------
4 * Description: Sum of the squares of the elements of a Q31 vector
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
18 * You may obtain a copy of the License at
20 * www.apache.org/licenses/LICENSE-2.0
41 @brief Sum of the squares of the elements of a Q31 vector.
47 The function is implemented using a 64-bit internal accumulator.
[all …]
Darm_mean_q7.c1 /* ----------------------------------------------------------------------
4 * Description: Mean value of a Q7 vector
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
18 * You may obtain a copy of the License at
20 * www.apache.org/licenses/LICENSE-2.0
41 @brief Mean value of a Q7 vector.
47 The function is implemented using a 32-bit internal accumulator.
[all …]
Darm_std_q15.c1 /* ----------------------------------------------------------------------
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
18 * You may obtain a copy of the License at
20 * www.apache.org/licenses/LICENSE-2.0
41 @brief Standard deviation of the elements of a Q15 vector.
47 The function is implemented using a 64-bit internal accumulator.
49 Intermediate multiplication yields a 2.30 format, and this
[all …]
Darm_power_q7.c1 /* ----------------------------------------------------------------------
4 * Description: Sum of the squares of the elements of a Q7 vector
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
18 * You may obtain a copy of the License at
20 * www.apache.org/licenses/LICENSE-2.0
41 @brief Sum of the squares of the elements of a Q7 vector.
47 The function is implemented using a 32-bit internal accumulator.
[all …]
Darm_power_f64.c1 /* ----------------------------------------------------------------------
4 * Description: Sum of the squares of the elements of a floating-point vector
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
18 * You may obtain a copy of the License at
20 * www.apache.org/licenses/LICENSE-2.0
41 @brief Sum of the squares of the elements of a floating-point vector.
63 /* C = A[0] * A[0] + A[1] * A[1] + ... + A[blockSize-1] * A[blockSize-1] */ in arm_power_f64()
[all …]
/cmsis-dsp-latest/Testing/
DREADME.md7 Here is a quick summary of how to get started with the framework the first time the repository is c…
11 You can also look at the artifact for the commit : it is containing a CMSIS Pack for this commit.
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/PythonWrapper/examples/
Dtestdsp2.py24 def imToReal2D(a): argument
25 ar=np.zeros(np.array(a.shape) * [1,2])
26 ar[::,0::2]=a.real
27 ar[::,1::2]=a.imag
33 def normalize(a): argument
34 return(a/np.max(np.abs(a)))
42 a=np.array([1.,-3.,4.,0.,-10.,8.]) variable
45 i=dsp.arm_max_f32(a)
48 i=dsp.arm_absmax_f32(a)
54 a = a / i[0] variable
[all …]
/cmsis-dsp-latest/Testing/FrameworkInclude/
DTest.h1 /* ----------------------------------------------------------------------
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
18 * You may obtain a copy of the License at
20 * www.apache.org/licenses/LICENSE-2.0
48 // Or convert some float into a uint32 or uint64 without convertion
50 // So it is a cast and not a data conversion.
82 // So a group ID, suite ID or test ID all have the same type
[all …]

12345678910>>...46