/cmsis-dsp-3.7.0-3.6.0/Testing/PatternGeneration/ |
D | DebugTools.py | 5 def readQ31Pattern(r): argument 7 with open(r, 'r') as f: 13 r=int(f.readline(),16) 14 r=struct.unpack('<i', struct.pack('<I',r))[0] 15 l.append(r) 20 def readQ15Pattern(r): argument 22 with open(r, 'r') as f: 28 r=int(f.readline(),16) 29 r=struct.unpack('<h', struct.pack('<H',r))[0] 30 l.append(r) [all …]
|
D | Distance.py | 19 r = scipy.spatial.distance.euclidean(xa,xb) 20 return(r) 23 r = scipy.spatial.distance.braycurtis(xa,xb) 24 return(r) 27 r = scipy.spatial.distance.canberra(xa,xb) 28 return(r) 31 r = scipy.spatial.distance.chebyshev(xa,xb) 32 return(r) 35 r = scipy.spatial.distance.cityblock(xa,xb) 36 return(r) [all …]
|
D | Matrix.py | 11 r=[] 13 r.append(element) 14 return(r) 85 r = a - t 86 r[abs(r)<1e-10]=0.0 87 return(np.all(r == 0.0)) 146 r = np.matmul(ma , mb) 147 r = list(r.reshape(a*c)) 148 vals = vals + r 157 r = np.matmul(ma , mb) [all …]
|
D | Decimate.py | 20 r=[] 22 r.append(element) 23 return(r) 66 …r=np.array([(n,blFactor*dFactor,dFactor) for (n,blFactor,dFactor) in itertools.product(*combinatio… 67 r = r.reshape(finalLength) 69 configf32.writeParam(1, r) 70 configf16.writeParam(1, r) 71 configq31.writeParam(1, r) 72 configq15.writeParam(1, r) 83 …r=np.array([(nFactor * iFactor,bl,iFactor) for (nFactor,bl,iFactor) in itertools.product(*combinat… [all …]
|
D | Tools.py | 70 r = np.zeros(vecSize) 116 r = int(round(v * 2**63)) 117 if (r > 0x07FFFFFFFFFFFFFFF): 118 r = 0x07FFFFFFFFFFFFFFF 119 if (r < -0x08000000000000000): 120 r = -0x08000000000000000 121 return ("0x%s" % format(struct.unpack('<Q', struct.pack('<q', r))[0],'016X')) 124 r = int(round(v * 2**31)) 125 if (r > 0x07FFFFFFF): 126 r = 0x07FFFFFFF [all …]
|
/cmsis-dsp-3.7.0-3.6.0/PythonWrapper/examples/ |
D | testdsp3.py | 8 r=dsp.arm_vlog_q15(f.toQ15(x)) variable 9 print(f.Q15toF32(r)*16.0) 11 r=dsp.arm_vlog_q31(f.toQ31(x)) variable 12 print(f.Q31toF32(r)*32.0) 38 err,r=dsp.arm_sqrt_f32(a) variable 39 print(err,r) 41 err,r=dsp.arm_sqrt_q31(f.toQ31(a)) variable 42 print(err,f.Q31toF32(r)) 44 err,r=dsp.arm_sqrt_q15(f.toQ15(a)) variable 45 print(err,f.Q15toF32(r)) [all …]
|
D | testdsp.py | 7 r = dsp.arm_add_f32(np.array([1.,2,3]),np.array([4.,5,7])) variable 8 print(r) 10 r = dsp.arm_add_q31([1,2,3],[4,5,7]) variable 11 print(r) 13 r = dsp.arm_add_q15([1,2,3],[4,5,7]) variable 14 print(r) 16 r = dsp.arm_add_q7([-1,2,3],[4,127,7]) variable 17 print(r) 19 r = dsp.arm_scale_f32([1.,2,3],2) variable 20 print(r) [all …]
|
D | example_1_5.py | 31 r = (alpha - beta) 32 v = x / r 94 r=np.random.randn(rows) 95 r = Tools.normalize(r)[np.newaxis] 98 result=r.T.dot(c) 135 status,r,q,tau = dsp.arm_mat_qr_f64(m,dsp.DEFAULT_HOUSEHOLDER_THRESHOLD_F64,tmpa,tmpb) variable 149 for c in r.T: 154 newm = np.dot(q,r) 159 status,r,q,tau = dsp.arm_mat_qr_f32(m,dsp.DEFAULT_HOUSEHOLDER_THRESHOLD_F32,tmpa,tmpb) variable 174 for c in r.T: [all …]
|
/cmsis-dsp-3.7.0-3.6.0/Include/dsp/ |
D | none.h | 249 q31_t r, s, t, u; in __QADD8() local 251 r = __SSAT(((((q31_t)x << 24) >> 24) + (((q31_t)y << 24) >> 24)), 8) & (int32_t)0x000000FF; in __QADD8() 256 return ((uint32_t)((u << 24) | (t << 16) | (s << 8) | (r ))); in __QADD8() 267 q31_t r, s, t, u; in __QSUB8() local 269 r = __SSAT(((((q31_t)x << 24) >> 24) - (((q31_t)y << 24) >> 24)), 8) & (int32_t)0x000000FF; in __QSUB8() 274 return ((uint32_t)((u << 24) | (t << 16) | (s << 8) | (r ))); in __QSUB8() 286 q31_t r = 0, s = 0; in __QADD16() local 288 r = __SSAT(((((q31_t)x << 16) >> 16) + (((q31_t)y << 16) >> 16)), 16) & (int32_t)0x0000FFFF; in __QADD16() 291 return ((uint32_t)((s << 16) | (r ))); in __QADD16() 302 q31_t r, s; in __SHADD16() local [all …]
|
/cmsis-dsp-3.7.0-3.6.0/Testing/ |
D | addToDB.py | 52 r=c.execute("SELECT name FROM sqlite_master WHERE type='table' AND name=?",req) 53 return(r.fetchone() != None) 119 r = conn.execute("select %s from %s where %s=?" % (key,table,keystr),(strv,)) 120 result=r.fetchone() 126 r = conn.execute("select %s from %s where %s=?" % (key,table,keystr),(strv,)) 127 result=r.fetchone() 136 …r = conn.execute("select compilerid from COMPILER where compilerkindid=? AND version=?" , (kind,v… 137 result=r.fetchone() 145 …r = conn.execute("select compilerid from COMPILER where compilerkindid=? AND version=? AND testdat… 146 result=r.fetchone() [all …]
|
D | addToRegDB.py | 54 r=c.execute("SELECT name FROM sqlite_master WHERE type='table' AND name=?",req) 55 return(r.fetchone() != None) 125 r = conn.execute("select %s from %s where %s=?" % (key,table,keystr),(strv,)) 126 result=r.fetchone() 132 r = conn.execute("select %s from %s where %s=?" % (key,table,keystr),(strv,)) 133 result=r.fetchone() 142 …r = conn.execute("select compilerid from COMPILER where compilerkindid=? AND version=?" , (kind,v… 143 result=r.fetchone() 151 …r = conn.execute("select compilerid from COMPILER where compilerkindid=? AND version=? AND testdat… 152 result=r.fetchone() [all …]
|
D | extractDb.py | 38 r=c.execute(lastID) 39 return(int(r.fetchone()[0])) 42 r=c.execute(lastIDAndDate,(forID,)) 43 return(r.fetchone()[0]) 78 r=c.execute(coreidSQL,(corename,)) 79 t=r.fetchone() 91 if re.search(r'-',t): 151 r=c.execute("SELECT name FROM sqlite_master WHERE type='table'") 153 for table in r: 160 …r=c.execute("select distinct typeid from %s WHERE %s order by typeid desc " % (benchTable,runidCMD… [all …]
|
D | processResult.py | 320 if re.match(r'^.*D:[ ].*$',l): 322 if re.match(r'^.*D:[ ]END$',l): 328 m = re.match(r'^.*D:[ ](.*)$',l) 334 m = re.match(r'^.*D:[ ](.*)$',l) 400 if not re.match(r'^.*D:[ ].*$',l): 406 if re.match(r'^%s[gs][ ]+[0-9]+.*$' % prefix,l): 408 theId=re.sub(r'^%s[gs][ ]+([0-9]+).*$' % prefix,r'\1',l) 446 if re.match(r'^%s[t][ ]*$' % prefix,l): 452 if re.match(r'^%sp.*$' % prefix,l): 463 passRe = r'^%s([0-9]+)[ ]+([0-9]+)[ ]+([0-9]+)[ ]+([t0-9]+)[ ]+([YN]).*$' % prefix [all …]
|
/cmsis-dsp-3.7.0-3.6.0/Testing/cmsis_build/ |
D | check.bat | 3 python ..\processResult.py -f ..\Output.pickle -e -r results_m0p.txt -html > m0p.html 6 python ..\processResult.py -f ..\Output.pickle -e -r results_m23.txt -html > m23.html 9 python ..\processResult.py -f ..\Output.pickle -e -r results_m3.txt -html > m3.html 12 python ..\processResult.py -f ..\Output.pickle -e -r results_m4.txt -html > m4.html 15 python ..\processResult.py -f ..\Output.pickle -e -r results_m7.txt -html > m7.html 18 python ..\processResult.py -f ..\Output.pickle -e -r results_m7_unrolled.txt -html > m7_unrolled.h… 21 python ..\processResult.py -f ..\Output.pickle -e -r results_m33.txt -html > m33.html 24 python ..\processResult.py -f ..\Output.pickle -e -r results_cs300.txt -html > cs300.html 27 python ..\processResult.py -f ..\Output.pickle -e -r results_cs300_u55.txt -html > cs300_u55.html 30 python ..\processResult.py -f ..\Output.pickle -e -r results_cs310.txt -html > cs310.html
|
/cmsis-dsp-3.7.0-3.6.0/Testing/TestScripts/ |
D | desc.py | 12 (r'\"[^\"]*\"',String), 13 (r'[a-zA-Z_][a-zA-Z_0-9\.]*',Text), 14 (r'[-+]?[0-9]+',Number), 15 (r'([=:\[\]]|->)',Operator), 16 (r'[\s\t]+',Text), 17 (r'[,{}]',Text), 18 (r'//.*?$', Comment.Singleline),
|
D | Parser.py | 165 r = TreeElem.TEST 171 if c.kind == TreeElem.TEST and r != TreeElem.GROUP: 172 r = TreeElem.SUITE 174 r = TreeElem.GROUP 176 r = TreeElem.GROUP 177 self.kind = r 282 if re.match(r'^([ \t]+)[^ \t].*$',line): 283 leftSpaces=re.sub(r'^([ \t]+)[^ \t].*$',r'\1',line.rstrip()) 287 line = re.sub(r'^(.*)//.*$',r'\1',line).rstrip() 290 regPat = r'^[ \t]+Pattern[ \t]+([a-zA-Z0-9_]+)[ \t]*:[ \t]*(.+)$' [all …]
|
/cmsis-dsp-3.7.0-3.6.0/Source/FilteringFunctions/ |
D | arm_levinson_durbin_q31.c | 41 q31_t r = ((q63_t)a * (q63_t)b) >> 15; in mul32x16() local 43 return(r); in mul32x16() 50 q31_t r = ((q63_t)a * b) >> 31; in mul32x32() local 52 return(r); in mul32x32() 61 q31_t r; in divide() local 82 r = mul32x16(d,inverse); in divide() 83 r = TWO_Q30 - (r << shift); in divide() 84 r = mul32x16(r, inverse); in divide() 85 r = mul32x32(r,n) ; in divide() 86 r = r << (shift + 2); in divide() [all …]
|
/cmsis-dsp-3.7.0-3.6.0/Source/MatrixFunctions/ |
D | arm_mat_ldlt_f32.c | 117 for(int r=k;r<n;r++) in arm_mat_ldlt_f32() local 119 if (pA[r*n+r] > m) in arm_mat_ldlt_f32() 121 m = pA[r*n+r]; in arm_mat_ldlt_f32() 122 j = r; in arm_mat_ldlt_f32() 367 int r; in arm_mat_ldlt_f32() local 369 for(r=k;r<n;r++) in arm_mat_ldlt_f32() 371 if (pA[r*n+r] > m) in arm_mat_ldlt_f32() 373 m = pA[r*n+r]; in arm_mat_ldlt_f32() 374 j = r; in arm_mat_ldlt_f32()
|
D | arm_mat_ldlt_f64.c | 105 int r,j=k; in arm_mat_ldlt_f64() local 108 for(r=k;r<n;r++) in arm_mat_ldlt_f64() 110 if (pA[r*n+r] > m) in arm_mat_ldlt_f64() 112 m = pA[r*n+r]; in arm_mat_ldlt_f64() 113 j = r; in arm_mat_ldlt_f64()
|
/cmsis-dsp-3.7.0-3.6.0/Scripts/ |
D | mfccdata.py | 35 r = int(round(v * 2**31)) 36 if (r > 0x07FFFFFFF): 37 r = 0x07FFFFFFF 38 if (r < -0x080000000): 39 r = -0x080000000 40 return ("0x%s" % format(struct.unpack('<I', struct.pack('<i', r))[0],'08X')) 43 r = int(round(v * 2**15)) 44 if (r > 0x07FFF): 45 r = 0x07FFF 46 if (r < -0x08000): [all …]
|
/cmsis-dsp-3.7.0-3.6.0/Include/ |
D | arm_vec_math.h | 147 any32x4_t r; in vmant_exp_f32() local 150 r.f = x; in vmant_exp_f32() 151 n = r.i >> 23; in vmant_exp_f32() 153 r.i = r.i - (n << 23); in vmant_exp_f32() 156 return r.f; in vmant_exp_f32() 239 f32x4_t r = x; in arm_vec_exponent_f32() local 242 r = vmulq(r, x); in arm_vec_exponent_f32() 245 return (r); in arm_vec_exponent_f32() 314 float32x4_t r = x; in arm_vec_exponent_f32() local 318 r = vmulq_f32(r , x); in arm_vec_exponent_f32() [all …]
|
/cmsis-dsp-3.7.0-3.6.0/Testing/Source/Tests/ |
D | UnaryTestsF32.cpp | 664 for(int r=0; r<n ; r++) in trans_f64() local 668 dst[c*n+r] = src[r*n+c]; in trans_f64() 675 for(int r=0; r<n ; r++) in trans_f32_f64() local 679 dst[c*n+r] = (float64_t)src[r*n+c]; in trans_f32_f64() 686 for(int r=0; r<n ; r++) in mult_f32_f64() local 693 sum += (float64_t)srcA[r*n+k] * srcB[k*n+c]; in mult_f32_f64() 695 dst[r*n+c] = sum; in mult_f32_f64() 702 for(int r=0; r<n ; r++) in mult_f64_f64() local 709 sum += srcA[r*n+k] * srcB[k*n+c]; in mult_f64_f64() 711 dst[r*n+c] = sum; in mult_f64_f64() [all …]
|
/cmsis-dsp-3.7.0-3.6.0/Source/DistanceFunctions/ |
D | arm_sokalsneath_distance.c | 62 float32_t r; in arm_sokalsneath_distance() local 66 r = 2.0*(ctf + cft); in arm_sokalsneath_distance() 68 return(r / (r + ctt)); in arm_sokalsneath_distance()
|
D | arm_rogerstanimoto_distance.c | 63 uint32_t ctt=0,cff=0,ctf=0,cft=0,r; in arm_rogerstanimoto_distance() local 67 r = 2*(ctf + cft); in arm_rogerstanimoto_distance() 69 return(1.0*r / (r + ctt + cff)); in arm_rogerstanimoto_distance()
|
D | arm_yule_distance.c | 62 uint32_t ctt=0,cff=0,ctf=0,cft=0,r; in arm_yule_distance() local 66 r = 2*(ctf * cft); in arm_yule_distance() 68 return(1.0*r / (r/2.0 + ctt * cff)); in arm_yule_distance()
|