/cmsis-dsp-3.7.0-3.6.0/Source/StatisticsFunctions/ |
D | arm_logsumexp_f32.c | 71 float32_t maxVal; in arm_logsumexp_f32() local 78 arm_max_no_idx_f32((float32_t *) in, blockSize, &maxVal); in arm_logsumexp_f32() 92 vecExp = vexpq_f32(vsubq_n_f32(vecIn, maxVal)); in arm_logsumexp_f32() 111 accum += expf(tmp - maxVal); in arm_logsumexp_f32() 116 accum = maxVal + logf(accum); in arm_logsumexp_f32() 127 float32_t maxVal; in arm_logsumexp_f32() local 145 maxVal = *pIn++; in arm_logsumexp_f32() 152 if (tmp > maxVal) in arm_logsumexp_f32() 154 maxVal = tmp; in arm_logsumexp_f32() 178 maxVal = vget_lane_f32(accumV2, 0) ; in arm_logsumexp_f32() [all …]
|
D | arm_max_q15.c | 107 …q15_t maxVal, out; /* Temporary variables to store the output value. */ in arm_max_q15() local 129 maxVal = *pSrc++; in arm_max_q15() 132 if (out < maxVal) in arm_max_q15() 135 out = maxVal; in arm_max_q15() 139 maxVal = *pSrc++; in arm_max_q15() 140 if (out < maxVal) in arm_max_q15() 142 out = maxVal; in arm_max_q15() 146 maxVal = *pSrc++; in arm_max_q15() 147 if (out < maxVal) in arm_max_q15() 149 out = maxVal; in arm_max_q15() [all …]
|
D | arm_max_q31.c | 107 …q31_t maxVal, out; /* Temporary variables to store the output value. */ in arm_max_q31() local 129 maxVal = *pSrc++; in arm_max_q31() 132 if (out < maxVal) in arm_max_q31() 135 out = maxVal; in arm_max_q31() 139 maxVal = *pSrc++; in arm_max_q31() 140 if (out < maxVal) in arm_max_q31() 142 out = maxVal; in arm_max_q31() 146 maxVal = *pSrc++; in arm_max_q31() 147 if (out < maxVal) in arm_max_q31() 149 out = maxVal; in arm_max_q31() [all …]
|
D | arm_max_f16.c | 147 …float16_t maxVal, out; /* Temporary variables to store the output value. */ in arm_max_f16() local 170 maxVal = *pSrc++; in arm_max_f16() 173 if ((_Float16)out < (_Float16)maxVal) in arm_max_f16() 176 out = maxVal; in arm_max_f16() 180 maxVal = *pSrc++; in arm_max_f16() 181 if ((_Float16)out < (_Float16)maxVal) in arm_max_f16() 183 out = maxVal; in arm_max_f16() 187 maxVal = *pSrc++; in arm_max_f16() 188 if ((_Float16)out < (_Float16)maxVal) in arm_max_f16() 190 out = maxVal; in arm_max_f16() [all …]
|
D | arm_max_q7.c | 161 …q7_t maxVal, out; /* Temporary variables to store the output value. */ in arm_max_q7() local 183 maxVal = *pSrc++; in arm_max_q7() 186 if (out < maxVal) in arm_max_q7() 189 out = maxVal; in arm_max_q7() 193 maxVal = *pSrc++; in arm_max_q7() 194 if (out < maxVal) in arm_max_q7() 196 out = maxVal; in arm_max_q7() 200 maxVal = *pSrc++; in arm_max_q7() 201 if (out < maxVal) in arm_max_q7() 203 out = maxVal; in arm_max_q7() [all …]
|
D | arm_absmax_no_idx_f64.c | 55 …float64_t maxVal , in; /* Temporary variables to store the output value. */ in arm_absmax_no_idx_f64() local 84 maxVal =vgetq_lane_f64(maxV, 0); in arm_absmax_no_idx_f64() 85 if(maxVal < vgetq_lane_f64(maxV, 1)) in arm_absmax_no_idx_f64() 87 maxVal = vgetq_lane_f64(maxV, 1); in arm_absmax_no_idx_f64() 97 if (maxVal < in) in arm_absmax_no_idx_f64() 100 maxVal = in; in arm_absmax_no_idx_f64() 106 *pResult = maxVal; in arm_absmax_no_idx_f64() 118 …float64_t maxVal, out; /* Temporary variables to store the output value. */ in arm_absmax_no_idx_f64() local 134 maxVal = fabs(*pSrc++); in arm_absmax_no_idx_f64() 137 if (out < maxVal) in arm_absmax_no_idx_f64() [all …]
|
D | arm_logsumexp_f16.c | 74 float16_t maxVal; in arm_logsumexp_f16() local 81 arm_max_no_idx_f16((float16_t *) in, blockSize, &maxVal); in arm_logsumexp_f16() 95 vecExp = vexpq_f16(vsubq_n_f16(vecIn, maxVal)); in arm_logsumexp_f16() 114 accum += (_Float16)expf((float32_t)((_Float16)tmp - (_Float16)maxVal)); in arm_logsumexp_f16() 119 accum = (_Float16)maxVal + (_Float16)logf((float32_t)accum); in arm_logsumexp_f16() 127 _Float16 maxVal; in arm_logsumexp_f16() local 136 maxVal = *pIn++; in arm_logsumexp_f16() 143 if (tmp > maxVal) in arm_logsumexp_f16() 145 maxVal = tmp; in arm_logsumexp_f16() 157 accum += (_Float16)expf((float32_t)((_Float16)tmp - (_Float16)maxVal)); in arm_logsumexp_f16() [all …]
|
D | arm_max_f32.c | 268 …float32_t maxVal, out; /* Temporary variables to store the output value. */ in arm_max_f32() local 291 maxVal = *pSrc++; in arm_max_f32() 294 if (out < maxVal) in arm_max_f32() 297 out = maxVal; in arm_max_f32() 301 maxVal = *pSrc++; in arm_max_f32() 302 if (out < maxVal) in arm_max_f32() 304 out = maxVal; in arm_max_f32() 308 maxVal = *pSrc++; in arm_max_f32() 309 if (out < maxVal) in arm_max_f32() 311 out = maxVal; in arm_max_f32() [all …]
|
D | arm_max_no_idx_f64.c | 53 …float64_t maxVal , in; /* Temporary variables to store the output value. */ in arm_max_no_idx_f64() local 82 maxVal =vgetq_lane_f64(maxV, 0); in arm_max_no_idx_f64() 83 if(maxVal < vgetq_lane_f64(maxV, 1)) in arm_max_no_idx_f64() 85 maxVal = vgetq_lane_f64(maxV, 1); in arm_max_no_idx_f64() 95 if (maxVal < in) in arm_max_no_idx_f64() 98 maxVal = in; in arm_max_no_idx_f64() 104 *pResult = maxVal; in arm_max_no_idx_f64()
|
D | arm_max_f64.c | 53 …float64_t maxVal, out; /* Temporary variables to store the output value. */ in arm_max_f64() local 68 maxVal = *pSrc++; in arm_max_f64() 71 if (out < maxVal) in arm_max_f64() 74 out = maxVal; in arm_max_f64()
|
D | arm_absmax_f64.c | 53 …float64_t maxVal, out; /* Temporary variables to store the output value. */ in arm_absmax_f64() local 70 maxVal = fabs(*pSrc++); in arm_absmax_f64() 73 if (out < maxVal) in arm_absmax_f64() 76 out = maxVal; in arm_absmax_f64()
|
D | arm_absmax_no_idx_f32.c | 187 …float32_t maxVal, out; /* Temporary variables to store the output value. */ in arm_absmax_no_idx_f32() local 204 maxVal = fabsf(*pSrc++); in arm_absmax_no_idx_f32() 207 if (out < maxVal) in arm_absmax_no_idx_f32() 210 out = maxVal; in arm_absmax_no_idx_f32()
|
D | arm_absmax_no_idx_q15.c | 168 …q15_t maxVal, out; /* Temporary variables to store the output value. */ in arm_absmax_no_idx_q15() local 182 maxVal = (*pSrc > 0) ? *pSrc : ((*pSrc == (q15_t) 0x8000) ? 0x7fff : -*pSrc); in arm_absmax_no_idx_q15() 186 if (out < maxVal) in arm_absmax_no_idx_q15() 189 out = maxVal; in arm_absmax_no_idx_q15()
|
D | arm_absmax_no_idx_q31.c | 167 …q31_t maxVal, out; /* Temporary variables to store the output value. */ in arm_absmax_no_idx_q31() local 182 maxVal = (*pSrc > 0) ? *pSrc : ((*pSrc == INT32_MIN) ? INT32_MAX : -*pSrc); in arm_absmax_no_idx_q31() 186 if (out < maxVal) in arm_absmax_no_idx_q31() 189 out = maxVal; in arm_absmax_no_idx_q31()
|
D | arm_absmax_no_idx_q7.c | 172 …q7_t maxVal, out; /* Temporary variables to store the output value. */ in arm_absmax_no_idx_q7() local 187 maxVal = (*pSrc > 0) ? *pSrc : ((*pSrc == (q7_t) 0x80) ? (q7_t) 0x7f : -*pSrc); in arm_absmax_no_idx_q7() 191 if (out < maxVal) in arm_absmax_no_idx_q7() 194 out = maxVal; in arm_absmax_no_idx_q7()
|
D | arm_absmax_no_idx_f16.c | 190 …float16_t maxVal, out; /* Temporary variables to store the output value. */ in arm_absmax_no_idx_f16() local 204 maxVal = (_Float16)fabsf((float32_t)*pSrc++); in arm_absmax_no_idx_f16() 207 if ((_Float16)out < (_Float16)maxVal) in arm_absmax_no_idx_f16() 210 out = maxVal; in arm_absmax_no_idx_f16()
|
D | arm_absmax_f32.c | 219 …float32_t maxVal, out; /* Temporary variables to store the output value. */ in arm_absmax_f32() local 237 maxVal = fabsf(*pSrc++); in arm_absmax_f32() 240 if (out < maxVal) in arm_absmax_f32() 243 out = maxVal; in arm_absmax_f32()
|
D | arm_absmax_q15.c | 197 …q15_t maxVal, out; /* Temporary variables to store the output value. */ in arm_absmax_q15() local 212 maxVal = (*pSrc > 0) ? *pSrc : ((*pSrc == (q15_t) 0x8000) ? 0x7fff : -*pSrc); in arm_absmax_q15() 216 if (out < maxVal) in arm_absmax_q15() 219 out = maxVal; in arm_absmax_q15()
|
D | arm_absmax_q31.c | 196 …q31_t maxVal, out; /* Temporary variables to store the output value. */ in arm_absmax_q31() local 212 maxVal = (*pSrc > 0) ? *pSrc : ((*pSrc == INT32_MIN) ? INT32_MAX : -*pSrc); in arm_absmax_q31() 216 if (out < maxVal) in arm_absmax_q31() 219 out = maxVal; in arm_absmax_q31()
|
D | arm_absmax_f16.c | 233 …float16_t maxVal, out; /* Temporary variables to store the output value. */ in arm_absmax_f16() local 248 maxVal = (_Float16)fabsf((float32_t)*pSrc++); in arm_absmax_f16() 251 if ((_Float16)out < (_Float16)maxVal) in arm_absmax_f16() 254 out = maxVal; in arm_absmax_f16()
|
D | arm_absmax_q7.c | 259 …q7_t maxVal, out; /* Temporary variables to store the output value. */ in arm_absmax_q7() local 275 maxVal = (*pSrc > 0) ? *pSrc : ((*pSrc == (q7_t) 0x80) ? (q7_t) 0x7f : -*pSrc); in arm_absmax_q7() 279 if (out < maxVal) in arm_absmax_q7() 282 out = maxVal; in arm_absmax_q7()
|
/cmsis-dsp-3.7.0-3.6.0/Source/DistanceFunctions/ |
D | arm_chebyshev_distance_f32.c | 108 float32_t diff=0.0f, maxVal=0.0f, tmpA, tmpB; in arm_chebyshev_distance_f32() local 118 maxVal = diff; in arm_chebyshev_distance_f32() 126 if (diff > maxVal) in arm_chebyshev_distance_f32() 128 maxVal = diff; in arm_chebyshev_distance_f32() 163 maxVal = vget_lane_f32(maxValV2,0); in arm_chebyshev_distance_f32() 172 if (diff > maxVal) in arm_chebyshev_distance_f32() 174 maxVal = diff; in arm_chebyshev_distance_f32() 179 return(maxVal); in arm_chebyshev_distance_f32() 185 float32_t diff=0.0f, maxVal,tmpA, tmpB; in arm_chebyshev_distance_f32() local 190 maxVal = diff; in arm_chebyshev_distance_f32() [all …]
|
D | arm_chebyshev_distance_f64.c | 52 float64_t diff=0., maxVal,tmpA, tmpB; in arm_chebyshev_distance_f64() local 54 maxVal = F64_MIN; in arm_chebyshev_distance_f64() 57 maxValV = vdupq_n_f64(maxVal); in arm_chebyshev_distance_f64() 69 maxVal =vgetq_lane_f64(maxValV, 0); in arm_chebyshev_distance_f64() 70 if(maxVal < vgetq_lane_f64(maxValV, 1)) in arm_chebyshev_distance_f64() 72 maxVal = vgetq_lane_f64(maxValV, 1); in arm_chebyshev_distance_f64() 86 if (diff > maxVal) in arm_chebyshev_distance_f64() 88 maxVal = diff; in arm_chebyshev_distance_f64() 93 return(maxVal); in arm_chebyshev_distance_f64()
|
D | arm_chebyshev_distance_f16.c | 116 _Float16 diff=0.0f, maxVal,tmpA, tmpB; in arm_chebyshev_distance_f16() local 121 maxVal = diff; in arm_chebyshev_distance_f16() 129 if ((_Float16)diff > (_Float16)maxVal) in arm_chebyshev_distance_f16() 131 maxVal = diff; in arm_chebyshev_distance_f16() 136 return(maxVal); in arm_chebyshev_distance_f16()
|
/cmsis-dsp-3.7.0-3.6.0/Testing/PatternGeneration/ |
D | BasicMaths.py | 230 maxVal = 0x7fffffff 232 maxVal = 0x7fff 234 maxVal = 0x7f 236 minVal = -maxVal-1 238 data1 = np.random.randint(minVal, maxVal, size=NBSAMPLES) 239 data2 = np.random.randint(minVal, maxVal, size=NBSAMPLES)
|