Home
last modified time | relevance | path

Searched refs:dot (Results 1 – 25 of 56) sorted by relevance

123

/cmsis-dsp-latest/Source/DistanceFunctions/
Darm_correlation_distance_f32.c56 float32_t ma,mb,pwra,pwrb,dot,tmp; in arm_correlation_distance_f32() local
67 arm_dot_prod_f32(pA,pB,blockSize,&dot); in arm_correlation_distance_f32()
69 dot = dot / blockSize; in arm_correlation_distance_f32()
75 return(1.0f - dot / tmp); in arm_correlation_distance_f32()
Darm_correlation_distance_f16.c68 float16_t ma,mb,pwra,pwrb,dot,tmp; in arm_correlation_distance_f16() local
79 arm_dot_prod_f16(pA,pB,blockSize,&dot); in arm_correlation_distance_f16()
81 dot = (_Float16)dot / (_Float16)blockSize; in arm_correlation_distance_f16()
87 return(1.0f16 - (_Float16)dot / (_Float16)tmp); in arm_correlation_distance_f16()
Darm_cosine_distance_f32.c56 float32_t pwra,pwrb,dot,tmp; in arm_cosine_distance_f32() local
61 arm_dot_prod_f32(pA,pB,blockSize,&dot); in arm_cosine_distance_f32()
64 return(1.0f - dot / tmp); in arm_cosine_distance_f32()
Darm_cosine_distance_f64.c54 float64_t pwra,pwrb,dot,tmp; in arm_cosine_distance_f64() local
59 arm_dot_prod_f64(pA,pB,blockSize,&dot); in arm_cosine_distance_f64()
62 return(1.0 - dot / tmp); in arm_cosine_distance_f64()
Darm_cosine_distance_f16.c69 float16_t pwra,pwrb,dot,tmp; in arm_cosine_distance_f16() local
74 arm_dot_prod_f16(pA,pB,blockSize,&dot); in arm_cosine_distance_f16()
77 return(1.0f16 - (_Float16)dot / (_Float16)tmp); in arm_cosine_distance_f16()
/cmsis-dsp-latest/dsppp/Include/dsppp/
Dalgorithms.hpp129 inline typename OutputVector<M,V>::type dot(const M&m,const V&v) in dot() function
139 inline typename OutputVector<M,V>::type dot(const M&m,const V&v) in dot() function
150 inline void dot(RES && res,const M&m,const V&v) in dot() function
171 inline typename OutputMatrix<MA,MB>::type dot(const MA&ma,const MB&mb) in dot() function
186 inline typename OutputMatrix<MA,MB>::type dot(const MA&ma,const MB&mb) in dot() function
200 inline typename OutputMatrix<MA,MB>::type dot(const MA&ma,const MB&mb) in dot() function
214 inline typename OutputMatrix<MA,MB>::type dot(const MA&ma,const MB&mb) in dot() function
243 inline void dot(RES &&res,const MA&ma,const MB&mb) in dot() function
256 inline typename OutputMatrix<MA,MB>::type dot(const MA&ma,const MB&mb) in dot() function
270 inline typename OutputMatrix<MA,MB>::type dot(const MA&ma,const MB&mb,const TMP &mbt) in dot() function
/cmsis-dsp-latest/PythonWrapper/examples/
Dexample_1_5.py17 xnorm2=x[1:].dot(x[1:])
82 product = A.T.dot(A)
98 result=r.T.dot(c)
113 result = qa .dot(d.dot(qb))
154 newm = np.dot(q,r)
179 newm = np.dot(q,r)
Dtestdsp5.py92 scaled= np.dot(a.T , w)
114 ref=np.dot(s,w)/np.sum(w)
176 ref=np.log(np.dot(sa,sb))
244 res=resl.dot(resd).dot(resl.T)
246 permutedSrc=p.dot(a).dot(p.T)
260 res=resl.dot(resd).dot(resl.T)
262 permutedSrc=p.dot(a).dot(p.T)
312 ref =a.dot(b)
359 ref = sa.dot(sb)
/cmsis-dsp-latest/Testing/PatternGeneration/
DQR.py12 result=r.T.dot(c)
27 result = qa .dot(d.dot(qb))
52 xnorm2=x[1:].dot(x[1:])
86 m[c:,c:] = np.dot(t,m[c:,c:])
93 q[c:,c:] = np.dot(t,q[c:,c:])
DComplexMaths.py37 ref = np.array(np.dot(data1[0:nb],data2[0:nb]))
48 ref = np.array(np.dot(data1[0:nb] ,data2[0:nb]))
59 ref = np.array(np.dot(data1[0:nb] ,data2[0:nb]))
93 ref = np.array(np.dot(data1 ,data2))
DBasicMaths.py72 ref = np.array([np.dot(data1[0:nb] ,data2[0:nb])])
87 ref = np.array([np.dot(data1[0:nb] ,data2[0:nb])])
102 ref = np.array([np.dot(data1[0:nb] ,data2[0:nb])])
119 ref = np.array([np.dot(data1 ,data2)])
DDebugTools.py100 energy = np.dot(ref,np.conj(ref))
101 error = np.dot(ref-sig,np.conj(ref-sig))
DStats.py103 e = np.log(np.dot(va,vb))
360 return(np.dot(data,data) / 2**15) # CMSIS is 2.28 format
362 return(np.dot(data,data) / 2**33) # CMSIS is 34.30 format
364 return(np.dot(data,data) / 2**17) # CMSIS is 18.14 format
366 return(np.dot(data,data))
371 return(np.dot(err,err) / nb)
374 return(math.sqrt(np.dot(data,data)/data.size))
/cmsis-dsp-latest/Documentation/Doxygen/src/
Dmatrix.md44 …` is the element-wise multiply. For the vector / matrix products you should use the operator `dot`.
46 …of operators will not work with `dot(Matrix, Matrix`). It is only supported with vectors : `dot(Ve…
123 * `dot` for vector / matrix products
129 ### dot subsection
132 result = dot(a,b);
135 The compiler may use the move semantic to copy the temporary result of the `dot` function to `resul…
137 …ld occur and `result` after the assignment would be a vector allocated by `dot` so using the `TMP_…
Dintroduction.md5 If you want to compute the dot product:
36 r = dot(scale*(a+b),c*d);
39 The code generated by this line computes the dot product in one pass with all the operators (`+`, `…
/cmsis-dsp-latest/Source/SVMFunctions/
Darm_svm_linear_predict_f32.c292 float32_t dot; in arm_svm_linear_predict_f32() local
399 dot = 0.0f; in arm_svm_linear_predict_f32()
416 dot = vget_lane_f32(accum2, 0) + vget_lane_f32(accum2, 1); in arm_svm_linear_predict_f32()
422 dot = dot + *pIn++ * *pSupport++; in arm_svm_linear_predict_f32()
427 sum += *pDualCoefs++ * dot; in arm_svm_linear_predict_f32()
440 float32_t dot=0; in arm_svm_linear_predict_f32() local
446 dot=0; in arm_svm_linear_predict_f32()
449 dot = dot + in[j]* *pSupport++; in arm_svm_linear_predict_f32()
451 sum += S->dualCoefficients[i] * dot; in arm_svm_linear_predict_f32()
Darm_svm_sigmoid_predict_f32.c310 float32_t dot; in arm_svm_sigmoid_predict_f32() local
424 dot = 0.0f; in arm_svm_sigmoid_predict_f32()
441 dot = vget_lane_f32(accum2, 0) + vget_lane_f32(accum2, 1); in arm_svm_sigmoid_predict_f32()
447 dot = dot + *pIn++ * *pSupport++; in arm_svm_sigmoid_predict_f32()
452 sum += *pDualCoefs++ * tanhf(S->gamma * dot + S->coef0); in arm_svm_sigmoid_predict_f32()
465 float32_t dot=0; in arm_svm_sigmoid_predict_f32() local
471 dot=0; in arm_svm_sigmoid_predict_f32()
474 dot = dot + in[j]* *pSupport++; in arm_svm_sigmoid_predict_f32()
476 sum += S->dualCoefficients[i] * tanhf(S->gamma * dot + S->coef0); in arm_svm_sigmoid_predict_f32()
Darm_svm_polynomial_predict_f32.c312 float32_t dot; in arm_svm_polynomial_predict_f32() local
426 dot = 0.0f; in arm_svm_polynomial_predict_f32()
443 dot = vget_lane_f32(accum2, 0) + vget_lane_f32(accum2, 1); in arm_svm_polynomial_predict_f32()
449 dot = dot + *pIn++ * *pSupport++; in arm_svm_polynomial_predict_f32()
454 sum += *pDualCoefs++ * arm_exponent_f32(S->gamma * dot + S->coef0, S->degree); in arm_svm_polynomial_predict_f32()
467 float32_t dot=0; in arm_svm_polynomial_predict_f32() local
473 dot=0; in arm_svm_polynomial_predict_f32()
476 dot = dot + in[j]* *pSupport++; in arm_svm_polynomial_predict_f32()
478 sum += S->dualCoefficients[i] * arm_exponent_f32(S->gamma * dot + S->coef0, S->degree); in arm_svm_polynomial_predict_f32()
Darm_svm_rbf_predict_f32.c330 float32_t dot; in arm_svm_rbf_predict_f32() local
455 dot = 0.0f; in arm_svm_rbf_predict_f32()
473 dot = vget_lane_f32(accum2, 0) + vget_lane_f32(accum2, 1); in arm_svm_rbf_predict_f32()
480 dot = dot + ARM_SQ(*pIn - *pSupport); in arm_svm_rbf_predict_f32()
487 sum += *pDualCoefs++ * expf(-S->gamma * dot); in arm_svm_rbf_predict_f32()
500 float32_t dot=0; in arm_svm_rbf_predict_f32() local
506 dot=0; in arm_svm_rbf_predict_f32()
509 dot = dot + ARM_SQ(in[j] - *pSupport); in arm_svm_rbf_predict_f32()
512 sum += S->dualCoefficients[i] * expf(-S->gamma * dot); in arm_svm_rbf_predict_f32()
Darm_svm_linear_predict_f16.c291 _Float16 dot=0; in arm_svm_linear_predict_f16() local
297 dot=0; in arm_svm_linear_predict_f16()
300 dot = (_Float16)dot + (_Float16)in[j]* (_Float16)*pSupport++; in arm_svm_linear_predict_f16()
302 sum += (_Float16)S->dualCoefficients[i] * (_Float16)dot; in arm_svm_linear_predict_f16()
Darm_svm_polynomial_predict_f16.c343 _Float16 dot=0; in arm_svm_polynomial_predict_f16() local
349 dot=0; in arm_svm_polynomial_predict_f16()
352 dot = (_Float16)dot + (_Float16)in[j]* (_Float16)*pSupport++; in arm_svm_polynomial_predict_f16()
354 …oefficients[i] * (_Float16)arm_exponent_f16((_Float16)S->gamma * (_Float16)dot + (_Float16)S->coef… in arm_svm_polynomial_predict_f16()
Darm_svm_sigmoid_predict_f16.c309 _Float16 dot=0.0f16; in arm_svm_sigmoid_predict_f16() local
315 dot=0.0f16; in arm_svm_sigmoid_predict_f16()
318 dot = (_Float16)dot + (_Float16)in[j] * (_Float16)*pSupport++; in arm_svm_sigmoid_predict_f16()
320 …efficients[i] * (_Float16)tanhf((float32_t)((_Float16)S->gamma * (_Float16)dot + (_Float16)S->coef… in arm_svm_sigmoid_predict_f16()
Darm_svm_rbf_predict_f16.c327 _Float16 dot=00.f16; in arm_svm_rbf_predict_f16() local
333 dot=0.0f16; in arm_svm_rbf_predict_f16()
336 dot = dot + ARM_SQ((_Float16)in[j] - (_Float16) *pSupport); in arm_svm_rbf_predict_f16()
339 …_Float16)S->dualCoefficients[i] * (_Float16)expf((float32_t)(-(_Float16)S->gamma * (_Float16)dot)); in arm_svm_rbf_predict_f16()
/cmsis-dsp-latest/dsppp/Include/dsppp/Helium/
Dmatrix_multiply.hpp32 inner::from_accumulator(dot(unroll<U>( in _dot_m_v()
42 inner::from_accumulator(dot(unroll<3>( in _dot_m_v()
49 inner::from_accumulator(dot(unroll<2>( in _dot_m_v()
55 res[row] = inner::from_accumulator(dot(m.row(row),v)); in _dot_m_v()
/cmsis-dsp-latest/dsppp/tests/
Dmatrix_test.cpp734 PVector<T,R> res = dot(m,a); in testmatvec()
736 PVector<T> res = dot(m,a); in testmatvec()
804 PVector<T,R> res = dot(m,tmpv); in testcomplexmatvec()
807 PVector<T> res = dot(m,tmpv); in testcomplexmatvec()
888 PMat<T,R,C> res = dot(ma,mb); in testmatmult()
890 PMat<T> res = dot(ma,mb); in testmatmult()
989 …res.sub(Slice(0,R),Slice(0,C)) = copy(dot(ma.sub(Slice(0,R),Slice(0,K)),mb.sub(Slice(0,K),Slice(0,… in testsubmatmult()
1141 T xnorm2 = dot(v.sub(1),v.sub(1)); in _householder()
1315 dot(tmpmat.sub(0,1,0,NBC-c),vt,RM.sub(c,c)); in QR()
1333 dot(tmpmat.sub(0,1,0,NBC-(NBC-1)),vt,RM.sub(NBC-1,NBC-1)); in QR()
[all …]

123