Home
last modified time | relevance | path

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

1234

/cmsis-dsp-3.5.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.5.0/Examples/ARM/arm_bayes_example/
Darm_bayes_example_f32.c97 uint32_t index; in main() local
109 index = arm_gaussian_naive_bayes_predict_f32(&S, in, result,temp); in main()
111 maxProba = result[index]; in main()
114 printf("Class = %d\n", index); in main()
121 index = arm_gaussian_naive_bayes_predict_f32(&S, in, result,temp); in main()
123 maxProba = result[index]; in main()
126 printf("Class = %d\n", index); in main()
133 index = arm_gaussian_naive_bayes_predict_f32(&S, in, result,temp); in main()
135 maxProba = result[index]; in main()
138 printf("Class = %d\n", index); in main()
/cmsis-dsp-3.5.0/Source/FastMathFunctions/
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_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_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_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_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.5.0/Source/StatisticsFunctions/
Darm_max_f32.c163 uint32x4_t index; in arm_max_f32() local
170 index = vld1q_u32(indexInit); in arm_max_f32()
216 countV = vbslq_u32(idxV, index,countV ); in arm_max_f32()
218 index = vaddq_u32(index,delta); in arm_max_f32()
273 uint32_t index; /* index of maximum value */ in arm_max_f32() local
284 index = 0U; in arm_max_f32()
299 outIndex = index + 1U; in arm_max_f32()
306 outIndex = index + 2U; in arm_max_f32()
313 outIndex = index + 3U; in arm_max_f32()
320 outIndex = index + 4U; in arm_max_f32()
[all …]
Darm_min_f32.c164 uint32x4_t index; in arm_min_f32() local
171 index = vld1q_u32(indexInit); in arm_min_f32()
216 countV = vbslq_u32(idxV, index,countV ); in arm_min_f32()
218 index = vaddq_u32(index,delta); in arm_min_f32()
271 uint32_t index; /* index of maximum value */ in arm_min_f32() local
282 index = 0U; in arm_min_f32()
297 outIndex = index + 1U; in arm_min_f32()
304 outIndex = index + 2U; in arm_min_f32()
311 outIndex = index + 3U; in arm_min_f32()
318 outIndex = index + 4U; in arm_min_f32()
[all …]
Darm_max_q15.c112 uint32_t index; /* index of maximum value */ in arm_max_q15() local
122 index = 0U; in arm_max_q15()
137 outIndex = index + 1U; in arm_max_q15()
144 outIndex = index + 2U; in arm_max_q15()
151 outIndex = index + 3U; in arm_max_q15()
158 outIndex = index + 4U; in arm_max_q15()
161 index += 4U; in arm_max_q15()
Darm_min_q15.c113 uint32_t index; /* index of maximum value */ in arm_min_q15() local
123 index = 0U; in arm_min_q15()
138 outIndex = index + 1U; in arm_min_q15()
145 outIndex = index + 2U; in arm_min_q15()
152 outIndex = index + 3U; in arm_min_q15()
159 outIndex = index + 4U; in arm_min_q15()
162 index += 4U; in arm_min_q15()
Darm_min_q31.c113 uint32_t index; /* index of maximum value */ in arm_min_q31() local
123 index = 0U; in arm_min_q31()
138 outIndex = index + 1U; in arm_min_q31()
145 outIndex = index + 2U; in arm_min_q31()
152 outIndex = index + 3U; in arm_min_q31()
159 outIndex = index + 4U; in arm_min_q31()
162 index += 4U; in arm_min_q31()
Darm_max_q31.c112 uint32_t index; /* index of maximum value */ in arm_max_q31() local
122 index = 0U; in arm_max_q31()
137 outIndex = index + 1U; in arm_max_q31()
144 outIndex = index + 2U; in arm_max_q31()
151 outIndex = index + 3U; in arm_max_q31()
158 outIndex = index + 4U; in arm_max_q31()
161 index += 4U; in arm_max_q31()
Darm_min_f16.c146 uint32_t index; /* index of maximum value */ in arm_min_f16() local
157 index = 0U; in arm_min_f16()
172 outIndex = index + 1U; in arm_min_f16()
179 outIndex = index + 2U; in arm_min_f16()
186 outIndex = index + 3U; in arm_min_f16()
193 outIndex = index + 4U; in arm_min_f16()
196 index += 4U; in arm_min_f16()
Darm_max_f16.c152 uint32_t index; /* index of maximum value */ in arm_max_f16() local
163 index = 0U; in arm_max_f16()
178 outIndex = index + 1U; in arm_max_f16()
185 outIndex = index + 2U; in arm_max_f16()
192 outIndex = index + 3U; in arm_max_f16()
199 outIndex = index + 4U; in arm_max_f16()
202 index += 4U; in arm_max_f16()
Darm_absmax_f32.c135 …uint32_t index; /* index of maximum value */ … in arm_absmax_f32() local
143index = 0U; … in arm_absmax_f32()
158 …outIndex = index + 1U; … in arm_absmax_f32()
166 …outIndex = index + 2U; … in arm_absmax_f32()
174 …outIndex = index + 3U; … in arm_absmax_f32()
182 …outIndex = index + 4U; … in arm_absmax_f32()
185index += 4U; … in arm_absmax_f32()
Darm_max_q7.c166 uint32_t index; /* index of maximum value */ in arm_max_q7() local
176 index = 0U; in arm_max_q7()
191 outIndex = index + 1U; in arm_max_q7()
198 outIndex = index + 2U; in arm_max_q7()
205 outIndex = index + 3U; in arm_max_q7()
212 outIndex = index + 4U; in arm_max_q7()
215 index += 4U; in arm_max_q7()
Darm_min_q7.c194 uint32_t index; /* index of maximum value */ in arm_min_q7() local
204 index = 0U; in arm_min_q7()
219 outIndex = index + 1U; in arm_min_q7()
226 outIndex = index + 2U; in arm_min_q7()
233 outIndex = index + 3U; in arm_min_q7()
240 outIndex = index + 4U; in arm_min_q7()
243 index += 4U; in arm_min_q7()
/cmsis-dsp-3.5.0/Include/dsp/
Dutils.h69 uint32_t index, i; in arm_recip_q31() local
85 index = (uint32_t)(in >> 24); in arm_recip_q31()
86 index = (index & INDEX_MASK); in arm_recip_q31()
89 out = pRecipTable[index]; in arm_recip_q31()
121 uint32_t index = 0, i = 0; in arm_recip_q15() local
137 index = (uint32_t)(in >> 8); in arm_recip_q15()
138 index = (index & INDEX_MASK); in arm_recip_q15()
141 out = pRecipTable[index]; in arm_recip_q15()
/cmsis-dsp-3.5.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