Home
last modified time | relevance | path

Searched refs:index (Results 1 – 25 of 80) sorted by relevance

1234

/cmsis-dsp-3.7.0-3.6.0/Testing/PatternGeneration/
DStats.py158 index=np.argmax(data[0:nbiters])
159 maxvalue=data[index]
161 indexes.append(index)
165 index=np.argmax(data[0:nbiters])
166 maxvalue=data[index]
168 indexes.append(index)
172 index=np.argmax(data[0:nbiters])
173 maxvalue=data[index]
175 indexes.append(index)
188 index=np.argmax(data[0:nbiters])
[all …]
/cmsis-dsp-3.7.0-3.6.0/Examples/ARM/arm_bayes_example/
Darm_bayes_example_f32.c94 uint32_t index; in main() local
106 index = arm_gaussian_naive_bayes_predict_f32(&S, in, result,temp); in main()
108 maxProba = result[index]; in main()
111 printf("Class = %d\n", index); in main()
118 index = arm_gaussian_naive_bayes_predict_f32(&S, in, result,temp); in main()
120 maxProba = result[index]; in main()
123 printf("Class = %d\n", index); in main()
130 index = arm_gaussian_naive_bayes_predict_f32(&S, in, result,temp); in main()
132 maxProba = result[index]; in main()
135 printf("Class = %d\n", index); in main()
/cmsis-dsp-3.7.0-3.6.0/Source/FastMathFunctions/
Darm_cos_f32.c74 uint16_t index; /* Index variable */ in arm_cos_f32() local
97 index = (uint16_t)findex; in arm_cos_f32()
100 if (index >= FAST_MATH_TABLE_SIZE) { in arm_cos_f32()
101 index = 0; in arm_cos_f32()
106 fract = findex - (float32_t) index; in arm_cos_f32()
109 a = sinTable_f32[index]; in arm_cos_f32()
110 b = sinTable_f32[index+1]; in arm_cos_f32()
Darm_sin_f32.c75 uint16_t index; /* Index variable */ in arm_sin_f32() local
98 index = (uint16_t)findex; in arm_sin_f32()
101 if (index >= FAST_MATH_TABLE_SIZE) { in arm_sin_f32()
102 index = 0; in arm_sin_f32()
107 fract = findex - (float32_t) index; in arm_sin_f32()
110 a = sinTable_f32[index]; in arm_sin_f32()
111 b = sinTable_f32[index+1]; in arm_sin_f32()
Darm_sin_q15.c53 int32_t index; /* Index variable */ in arm_sin_q15() local
64 index = (uint32_t)x >> FAST_MATH_Q15_SHIFT; in arm_sin_q15()
67 fract = (x - (index << FAST_MATH_Q15_SHIFT)) << 9; in arm_sin_q15()
70 a = sinTable_q15[index]; in arm_sin_q15()
71 b = sinTable_q15[index+1]; in arm_sin_q15()
Darm_sin_q31.c53 int32_t index; /* Index variable */ in arm_sin_q31() local
63 index = (uint32_t)x >> FAST_MATH_Q31_SHIFT; in arm_sin_q31()
66 fract = (x - (index << FAST_MATH_Q31_SHIFT)) << 9; in arm_sin_q31()
69 a = sinTable_q31[index]; in arm_sin_q31()
70 b = sinTable_q31[index+1]; in arm_sin_q31()
Darm_cos_q15.c53 int32_t index; /* Index variable */ in arm_cos_q15() local
65 index = (uint32_t)x >> FAST_MATH_Q15_SHIFT; in arm_cos_q15()
68 fract = (x - (index << FAST_MATH_Q15_SHIFT)) << 9; in arm_cos_q15()
71 a = sinTable_q15[index]; in arm_cos_q15()
72 b = sinTable_q15[index+1]; in arm_cos_q15()
Darm_cos_q31.c53 int32_t index; /* Index variable */ in arm_cos_q31() local
65 index = (uint32_t)x >> FAST_MATH_Q31_SHIFT; in arm_cos_q31()
68 fract = (x - (index << FAST_MATH_Q31_SHIFT)) << 9; in arm_cos_q31()
71 a = sinTable_q31[index]; in arm_cos_q31()
72 b = sinTable_q31[index+1]; in arm_cos_q31()
/cmsis-dsp-3.7.0-3.6.0/Source/StatisticsFunctions/
Darm_max_f32.c162 uint32x4_t index; in arm_max_f32() local
169 index = vld1q_u32(indexInit); in arm_max_f32()
215 countV = vbslq_u32(idxV, index,countV ); in arm_max_f32()
217 index = vaddq_u32(index,delta); in arm_max_f32()
272 uint32_t index; /* index of maximum value */ in arm_max_f32() local
283 index = 0U; in arm_max_f32()
298 outIndex = index + 1U; in arm_max_f32()
305 outIndex = index + 2U; in arm_max_f32()
312 outIndex = index + 3U; in arm_max_f32()
319 outIndex = index + 4U; in arm_max_f32()
[all …]
Darm_min_f32.c163 uint32x4_t index; in arm_min_f32() local
170 index = vld1q_u32(indexInit); in arm_min_f32()
215 countV = vbslq_u32(idxV, index,countV ); in arm_min_f32()
217 index = vaddq_u32(index,delta); in arm_min_f32()
270 uint32_t index; /* index of maximum value */ in arm_min_f32() local
281 index = 0U; in arm_min_f32()
296 outIndex = index + 1U; in arm_min_f32()
303 outIndex = index + 2U; in arm_min_f32()
310 outIndex = index + 3U; in arm_min_f32()
317 outIndex = index + 4U; in arm_min_f32()
[all …]
Darm_max_q15.c111 uint32_t index; /* index of maximum value */ in arm_max_q15() local
121 index = 0U; in arm_max_q15()
136 outIndex = index + 1U; in arm_max_q15()
143 outIndex = index + 2U; in arm_max_q15()
150 outIndex = index + 3U; in arm_max_q15()
157 outIndex = index + 4U; in arm_max_q15()
160 index += 4U; in arm_max_q15()
Darm_max_q31.c111 uint32_t index; /* index of maximum value */ in arm_max_q31() local
121 index = 0U; in arm_max_q31()
136 outIndex = index + 1U; in arm_max_q31()
143 outIndex = index + 2U; in arm_max_q31()
150 outIndex = index + 3U; in arm_max_q31()
157 outIndex = index + 4U; in arm_max_q31()
160 index += 4U; in arm_max_q31()
Darm_min_q15.c112 uint32_t index; /* index of maximum value */ in arm_min_q15() local
122 index = 0U; in arm_min_q15()
137 outIndex = index + 1U; in arm_min_q15()
144 outIndex = index + 2U; in arm_min_q15()
151 outIndex = index + 3U; in arm_min_q15()
158 outIndex = index + 4U; in arm_min_q15()
161 index += 4U; in arm_min_q15()
Darm_min_q31.c112 uint32_t index; /* index of maximum value */ in arm_min_q31() local
122 index = 0U; in arm_min_q31()
137 outIndex = index + 1U; in arm_min_q31()
144 outIndex = index + 2U; in arm_min_q31()
151 outIndex = index + 3U; in arm_min_q31()
158 outIndex = index + 4U; in arm_min_q31()
161 index += 4U; in arm_min_q31()
Darm_max_f16.c151 uint32_t index; /* index of maximum value */ in arm_max_f16() local
162 index = 0U; in arm_max_f16()
177 outIndex = index + 1U; in arm_max_f16()
184 outIndex = index + 2U; in arm_max_f16()
191 outIndex = index + 3U; in arm_max_f16()
198 outIndex = index + 4U; in arm_max_f16()
201 index += 4U; in arm_max_f16()
Darm_min_f16.c145 uint32_t index; /* index of maximum value */ in arm_min_f16() local
156 index = 0U; in arm_min_f16()
171 outIndex = index + 1U; in arm_min_f16()
178 outIndex = index + 2U; in arm_min_f16()
185 outIndex = index + 3U; in arm_min_f16()
192 outIndex = index + 4U; in arm_min_f16()
195 index += 4U; in arm_min_f16()
Darm_absmax_f32.c134 …uint32_t index; /* index of maximum value */ … in arm_absmax_f32() local
142index = 0U; … in arm_absmax_f32()
157 …outIndex = index + 1U; … in arm_absmax_f32()
165 …outIndex = index + 2U; … in arm_absmax_f32()
173 …outIndex = index + 3U; … in arm_absmax_f32()
181 …outIndex = index + 4U; … in arm_absmax_f32()
184index += 4U; … in arm_absmax_f32()
Darm_max_q7.c165 uint32_t index; /* index of maximum value */ in arm_max_q7() local
175 index = 0U; in arm_max_q7()
190 outIndex = index + 1U; in arm_max_q7()
197 outIndex = index + 2U; in arm_max_q7()
204 outIndex = index + 3U; in arm_max_q7()
211 outIndex = index + 4U; in arm_max_q7()
214 index += 4U; in arm_max_q7()
Darm_absmax_q15.c112 …uint32_t index; /* index of maximum value */ … in arm_absmax_q15() local
120index = 0U; … in arm_absmax_q15()
135 …outIndex = index + 1U; … in arm_absmax_q15()
143 …outIndex = index + 2U; … in arm_absmax_q15()
151 …outIndex = index + 3U; … in arm_absmax_q15()
159 …outIndex = index + 4U; … in arm_absmax_q15()
162index += 4U; … in arm_absmax_q15()
/cmsis-dsp-3.7.0-3.6.0/Include/dsp/
Dutils.h71 uint32_t index, i; in arm_recip_q31() local
87 index = (uint32_t)(in >> 24); in arm_recip_q31()
88 index = (index & INDEX_MASK); in arm_recip_q31()
91 out = pRecipTable[index]; in arm_recip_q31()
123 uint32_t index = 0, i = 0; in arm_recip_q15() local
139 index = (uint32_t)(in >> 8); in arm_recip_q15()
140 index = (index & INDEX_MASK); in arm_recip_q15()
143 out = pRecipTable[index]; in arm_recip_q15()
/cmsis-dsp-3.7.0-3.6.0/Source/InterpolationFunctions/
Darm_linear_interp_q15.c61 int32_t index; /* Index to read nearest output values */ in arm_linear_interp_q15() local
66 index = ((x & (int32_t)0xFFF00000) >> 20); in arm_linear_interp_q15()
68 if (index >= (int32_t)(nValues - 1)) in arm_linear_interp_q15()
72 else if (index < 0) in arm_linear_interp_q15()
83 y0 = pYData[index]; in arm_linear_interp_q15()
84 y1 = pYData[index + 1]; in arm_linear_interp_q15()
Darm_linear_interp_q31.c62 int32_t index; /* Index to read nearest output values */ in arm_linear_interp_q31() local
67 index = ((x & (q31_t)0xFFF00000) >> 20); in arm_linear_interp_q31()
69 if (index >= (int32_t)(nValues - 1)) in arm_linear_interp_q31()
73 else if (index < 0) in arm_linear_interp_q31()
84 y0 = pYData[index]; in arm_linear_interp_q31()
85 y1 = pYData[index + 1]; in arm_linear_interp_q31()
Darm_bilinear_interp_f32.c109 int32_t xIndex, yIndex, index; in arm_bilinear_interp_f32() local
124 index = (xIndex ) + (yIndex ) * S->numCols; in arm_bilinear_interp_f32()
128 f00 = pData[index]; in arm_bilinear_interp_f32()
129 f01 = pData[index + 1]; in arm_bilinear_interp_f32()
132 index = (xIndex ) + (yIndex+1) * S->numCols; in arm_bilinear_interp_f32()
136 f10 = pData[index]; in arm_bilinear_interp_f32()
137 f11 = pData[index + 1]; in arm_bilinear_interp_f32()
Darm_bilinear_interp_f16.c61 int32_t xIndex, yIndex, index; in arm_bilinear_interp_f16() local
76 index = (xIndex ) + (yIndex ) * S->numCols; in arm_bilinear_interp_f16()
80 f00 = pData[index]; in arm_bilinear_interp_f16()
81 f01 = pData[index + 1]; in arm_bilinear_interp_f16()
84 index = (xIndex ) + (yIndex+1) * S->numCols; in arm_bilinear_interp_f16()
88 f10 = pData[index]; in arm_bilinear_interp_f16()
89 f11 = pData[index + 1]; in arm_bilinear_interp_f16()
Darm_linear_interp_q7.c61 uint32_t index; /* Index to read nearest output values */ in arm_linear_interp_q7() local
70 index = (x >> 20) & 0xfff; in arm_linear_interp_q7()
72 if (index >= (nValues - 1)) in arm_linear_interp_q7()
83 y0 = pYData[index]; in arm_linear_interp_q7()
84 y1 = pYData[index + 1]; in arm_linear_interp_q7()

1234