/cmsis-dsp-latest/dsppp/Include/dsppp/ |
D | fixed_point.hpp | 368 value_type v; member 373 constexpr Q():v(0){}; in Q() 379 constexpr explicit Q(const value_type x):v(x){}; in Q() 409 :v{value_type(other.v)} {}; in Q() 418 return(v == b.v); in operator ==() 428 return(v != b.v); in operator !=() 438 return(v < b.v); in operator <() 448 return(v > b.v); in operator >() 458 return(v <= b.v); in operator <=() 468 return(v >= b.v); in operator >=() [all …]
|
D | algorithms.hpp | 67 inline void _diagonal(Matrix<P,R,R,A> &v, in _diagonal() argument 74 v.row(r) = P{}; in _diagonal() 75 v(r,r) = other[r]; in _diagonal() 91 inline void _fill_diagonal(Matrix<P,R,R,A> &v, in _fill_diagonal() argument 97 v(r,r) = other[r]; in _fill_diagonal() 103 inline void _identity(Matrix<P,R,R,A> &v, in _identity() argument 109 v.row(r) = P{}; in _identity() 110 v(r,r) = number_traits<P>::one(); in _identity() 129 inline typename OutputVector<M,V>::type dot(const M&m,const V&v) in dot() argument 132 _dot_m_v(res,m,v,CURRENT_ARCH); in dot() [all …]
|
D | number.hpp | 109 static typename vector_traits<T>::predicate_t mk(uint32_t v); 172 __STATIC_FORCEINLINE mve_pred16_t _vctpq(uint32_t v,Helium * = nullptr); 175 __STATIC_FORCEINLINE mve_pred16_t _vctpq<float>(uint32_t v,Helium *) 177 return(vctp32q(v)); 181 __STATIC_FORCEINLINE mve_pred16_t vctpq(uint32_t v) 183 return(_vctpq<T>(v,CURRENT_ARCH));
|
/cmsis-dsp-latest/dsppp/Include/dsppp/DSP/ |
D | q7.hpp | 25 Q7DSPVector():v(0){}; in Q7DSPVector() 26 explicit Q7DSPVector(int32_t val):v(val){}; in Q7DSPVector() 27 operator int32_t(){return v;}; in operator int32_t() 28 int32_t v; member 67 static constexpr int8_t lane_value(const Q7 x) {return x.v;}; in lane_value() 79 static uint32_t mk(uint32_t v) in mk() 81 return(v); in mk() 87 return(Q7DSPVector(__PACKq7(val.v, val.v, val.v, val.v))); in vconst() 93 return(Q7DSPVector(__QSUB8(0, a.v))); in vneg() 99 return(Q7DSPVector(__QADD8(a.v,b.v))); in vadd() [all …]
|
D | q15.hpp | 30 Q15DSPVector():v(0){}; in Q15DSPVector() 37 explicit Q15DSPVector(int32_t val):v(val){}; in Q15DSPVector() 42 operator int32_t(){return v;}; in operator int32_t() 44 int32_t v; member 122 static constexpr int16_t lane_value(const Q15 x) {return x.v;}; in lane_value() 136 static uint32_t mk(uint32_t v) in mk() 138 return(v); in mk() 151 return(Q15DSPVector(__PKHBT(val.v, val.v, 16))); in vconst() 157 return(Q15DSPVector(__QSUB16(0, a.v))); in vneg() 163 return(Q15DSPVector(__QADD16(a.v,b.v))); in vadd() [all …]
|
D | basic.hpp | 27 inline void _Fill(DST &v, in _Fill() argument 39 v.vector_store(i + k*nb_lanes,inner::vconst(val)); in _Fill() 45 v[i] = val; in _Fill() 54 inline void _Fill2D(DST &v, in _Fill2D() argument 71 v.matrix_store(row+k,col,inner::vconst(val)); in _Fill2D() 79 v(row+k,col) = val; in _Fill2D() 90 v.matrix_store(row,col,inner::vconst(val)); in _Fill2D() 95 v(row,col) = val; in _Fill2D() 109 inline void eval(DA &v, in eval() argument 123 v.vector_store(i + k*nb_lanes,other.vector_op(i+k*nb_lanes)); in eval() [all …]
|
/cmsis-dsp-latest/dsppp/ |
D | allocator.cpp | 26 for (const auto v : max_stats) in print_map() local 29 if (v.first > 0) in print_map() 31 std::cout << "ALLOC_POOL(" << v.first << "," << v.second << "); \r\n"; in print_map() 32 total_static += v.first * v.second; in print_map() 36 for (const auto v : max_stats) in print_map() local 39 if (v.first > 0) in print_map() 41 std::cout << "POOL(" << v.first << "); \r\n"; in print_map() 51 for (const auto v : max_stats) in print_map() local 54 if (v.first < 0) in print_map() 60 std::cout << std::dec << -v.first << " : " << v.second << "\r\n"; in print_map() [all …]
|
/cmsis-dsp-latest/Testing/TestScripts/ |
D | CodeGen.py | 431 def _write64(self,v,f): argument 446 a[0]= v & 0x0FF 447 v = v >> 8 448 a[1]= v & 0x0FF 449 v = v >> 8 450 a[2]= v & 0x0FF 451 v = v >> 8 452 a[3]= v & 0x0FF 453 v = v >> 8 454 a[4]= v & 0x0FF [all …]
|
/cmsis-dsp-latest/Testing/PatternGeneration/ |
D | SVM.py | 39 v = np.random.randn(1,VECDIM) variable 40 v = v * CENTER_DISTANCE/2.0/10 variable 49 v = v + C0 variable 52 v = v + C1 55 Xone.append(v[0].tolist()) 56 X.append(v[0].tolist()) 64 v = np.random.randn(1,vecdim) 65 v = v * CENTER_DISTANCE/2.0/10 68 v = v + c0 70 v = v + c1 [all …]
|
D | Bayes.py | 11 def printV(v): argument 14 for r in v: 21 def printM(v): argument 24 for r in v: 48 v = np.random.randn(vecDim) 49 v = v * CENTER_DISTANCE/2.0/ratio 54 return((v + c1).tolist(),c) 62 v,c=newRandomVector(nbClasses,vecDim,TRAININGRATIO) 64 inputs.append(v) 109 v,c=newRandomVector(classNb,vecDim,PREDICTRATIO) [all …]
|
D | Tools.py | 115 def to_q63(v): argument 116 r = int(round(v * 2**63)) 123 def to_q31(v): argument 124 r = int(round(v * 2**31)) 131 def to_q15(v): argument 132 r = int(round(v * 2**15)) 139 def to_q7(v): argument 140 r = int(round(v * 2**7)) 184 def setOverwrite(self,v): argument 185 self._overwrite=v [all …]
|
D | QR.py | 49 v=np.hstack([[1],x[1:]]) 59 v = np.zeros(len(x)) 67 v = x / r 69 v[0] = 1 71 return(v,tau) 81 v,beta=householder(m[c:,c],eps=eps) 83 h.append(v) 84 hvects.append((v,beta)) 85 t = np.identity(currentSize) - beta * np.outer(v,v) 91 for (v,beta) in hvects: [all …]
|
/cmsis-dsp-latest/Include/dsp/ |
D | matrix_utils.h | 43 #define SCALE_COL_T(T,CAST,A,ROW,v,i) \ argument 54 *data *= CAST v; \ 96 #define SCALE_ROW_F16(A,COL,v,i) \ argument 108 tmpa = vmulq_n_f16(tmpa,(_Float16)v); \ 115 #define MAC_ROW_F16(COL,A,i,v,B,j) \ argument 129 tmpa = vfmaq_n_f16(tmpa,tmpb,v); \ 136 #define MAS_ROW_F16(COL,A,i,v,B,j) \ argument 143 f16x8_t vec=vdupq_n_f16(v); \ 181 #define SCALE_ROW_F16(A,COL,v,i) \ 192 *data++ *= (_Float16)v; \ [all …]
|
/cmsis-dsp-latest/dsppp/tests/ |
D | matrix_utils.h | 43 #define SCALE_COL_T(T,CAST,A,ROW,v,i) \ argument 54 *data *= CAST v; \ 96 #define SCALE_ROW_F16(A,COL,v,i) \ argument 108 tmpa = vmulq_n_f16(tmpa,(_Float16)v); \ 115 #define MAC_ROW_F16(COL,A,i,v,B,j) \ argument 129 tmpa = vfmaq_n_f16(tmpa,tmpb,v); \ 136 #define MAS_ROW_F16(COL,A,i,v,B,j) \ argument 143 f16x8_t vec=vdupq_n_f16(v); \ 181 #define SCALE_ROW_F16(A,COL,v,i) \ 192 *data++ *= (_Float16)v; \ [all …]
|
D | dot_test.cpp | 133 constexpr auto v = TestConstant<T>::v; in all_dot_test() local 164 complex_test<T,NBVEC_4,ACC>(v); in all_dot_test() 165 complex_test<T,NBVEC_8,ACC>(v); in all_dot_test() 166 complex_test<T,NBVEC_9,ACC>(v); in all_dot_test() 167 complex_test<T,NBVEC_32,ACC>(v); in all_dot_test() 168 complex_test<T,NBVEC_64,ACC>(v); in all_dot_test() 169 complex_test<T,NBVEC_128,ACC>(v); in all_dot_test() 171 complex_test<T,NBVEC_256,ACC>(v); in all_dot_test() 173 complex_test<T,NBVEC_258,ACC>(v); in all_dot_test() 174 complex_test<T,NBVEC_512,ACC>(v); in all_dot_test() [all …]
|
/cmsis-dsp-latest/dsppp/Include/dsppp/Helium/ |
D | q31.hpp | 54 static constexpr int16_t lane_value(const Q31 x) {return x.v;}; in lane_value() 66 static mve_pred16_t mk(uint32_t v) in mk() 68 return(vctp32q(v)); in mk() 74 return(vdupq_n_s32(val.v)); in vconst() 80 return(vdupq_x_n_s32(val.v,p0)); in vconst_tail() 102 return(vqaddq_n_s32(a,b.v)); in vadd() 107 return(vqaddq_n_s32(b,a.v)); in vadd() 120 return(vqaddq_m_n_s32(vuninitializedq_s32(),a,b.v,p0)); in vadd() 126 return(vqaddq_m_n_s32(vuninitializedq_s32(),b,a.v,p0)); in vadd() 136 return(vqsubq_n_s32(a,b.v)); in vsub() [all …]
|
D | q15.hpp | 91 static constexpr int16_t lane_value(const Q15 x) {return x.v;}; in lane_value() 103 static mve_pred16_t mk(uint32_t v) in mk() 105 return(vctp16q(v)); in mk() 111 return(vdupq_n_s16(val.v)); in vconst() 117 return(vdupq_x_n_s16(val.v,p0)); in vconst_tail() 139 return(vqaddq_n_s16(a,b.v)); in vadd() 144 return(vqaddq_n_s16(b,a.v)); in vadd() 157 return(vqaddq_m_n_s16(vuninitializedq_s16(),a,b.v,p0)); in vadd() 163 return(vqaddq_m_n_s16(vuninitializedq_s16(),b,a.v,p0)); in vadd() 173 return(vqsubq_n_s16(a,b.v)); in vsub() [all …]
|
D | q7.hpp | 53 static constexpr int8_t lane_value(const Q7 x) {return x.v;}; in lane_value() 66 static mve_pred16_t mk(uint32_t v) in mk() 68 return(vctp8q(v)); in mk() 74 return(vdupq_n_s8(val.v)); in vconst() 80 return(vdupq_x_n_s8(val.v,p0)); in vconst_tail() 102 return(vqaddq_n_s8(a,b.v)); in vadd() 107 return(vqaddq_n_s8(b,a.v)); in vadd() 120 return(vqaddq_m_n_s8(vuninitializedq_s8(),a,b.v,p0)); in vadd() 126 return(vqaddq_m_n_s8(vuninitializedq_s8(),b,a.v,p0)); in vadd() 136 return(vqsubq_n_s8(a,b.v)); in vsub() [all …]
|
D | basic.hpp | 36 inline void _Fill(DST &v, in _Fill() argument 46 v.vector_store_tail(i,l-i,inner::vconst_tail(val,inner::vctpq<T>::mk(l-i))); in _Fill() 66 inline void _Fill2D(DST &v, in _Fill2D() argument 90 … v.matrix_store_tail(row+k,col,cols-col,inner::vconst_tail(val,inner::vctpq<T>::mk(cols-col))); in _Fill2D() 101 … v.matrix_store_tail(row,col,cols-col,inner::vconst_tail(val,inner::vctpq<T>::mk(cols-col))); in _Fill2D() 120 inline void eval(DA &v, in eval() argument 133 v.vector_store_tail(i,l-i,other.vector_op_tail(i,l-i)); in eval() 152 inline void eval2D(DA &v, in eval2D() argument 176 v.matrix_store_tail(row+k,col,cols-col,other.matrix_op_tail(row+k,col,cols-col)); in eval2D() 188 v.matrix_store_tail(row,col,cols-col,other.matrix_op_tail(row,col,cols-col)); in eval2D()
|
/cmsis-dsp-latest/Testing/FrameworkSource/ |
D | FPGA.cpp | 110 unsigned long v; in read32() local 117 v = a | (b << 8) | (c << 16) | (d << 24); in read32() 118 *r = v; in read32() 735 float64_t v; in DumpPattern_f64() local 738 v = data[i]; in DumpPattern_f64() 739 t = TOINT64(v); in DumpPattern_f64() 758 float32_t v; in DumpPattern_f32() local 761 v = data[i]; in DumpPattern_f32() 762 t = TOINT32(v); in DumpPattern_f32() 778 float16_t v; in DumpPattern_f16() local [all …]
|
/cmsis-dsp-latest/dsppp/Include/dsppp/Scalar/ |
D | basic.hpp | 31 inline void _Fill(DST &v, in _Fill() argument 44 v[i+k] = val; in _Fill() 50 v[i] = val; in _Fill() 69 inline void _Fill2D(DST &v, in _Fill2D() argument 86 v(row+k,col) = val; in _Fill2D() 96 v(row,col) = val; in _Fill2D() 115 inline void eval(DA &v, in eval() argument 127 v[i+k] = other[i+k]; in eval() 133 v[i] = other[i]; in eval() 151 inline void eval2D(DA &v, in eval2D() argument [all …]
|
/cmsis-dsp-latest/PythonWrapper/ |
D | testrecip.py | 16 s,v=dsp.arm_recip_q15(int(0x2000),recipQ15) variable 19 print("%04X -> %f" % (v,((v<<s)/(1<<15)))) 22 s,v=dsp.arm_recip_q15(1,recipQ15) variable 25 print("%04X -> %f" % (v,((v<<s)/(1<<15))))
|
/cmsis-dsp-latest/Include/ |
D | arm_vec_math_f16.h | 258 any16x8_t v; in vrecip_f16() local 262 v.f = vecIn; in vrecip_f16() 263 v.i = vsubq(vdupq_n_s16(INV_NEWTON_INIT_F16), v.i); in vrecip_f16() 265 vecW = vmulq(vecSx, v.f); in vrecip_f16() 275 v.f = vmulq(v.f, vecTmp); in vrecip_f16() 277 v.f = vdupq_m_n_f16(v.f, F16INFINITY, vcmpeqq_n_f16(vecIn, 0.0f)); in vrecip_f16() 281 v.f = vnegq_m(v.f, v.f, vcmpltq_n_f16(vecIn, 0.0f)); in vrecip_f16() 282 return v.f; in vrecip_f16()
|
D | arm_vec_math.h | 251 any32x4_t v; in vrecip_f32() local 255 v.f = vecIn; in vrecip_f32() 256 v.i = vsubq(vdupq_n_s32(INV_NEWTON_INIT_F32), v.i); in vrecip_f32() 258 vecW = vmulq(vecSx, v.f); in vrecip_f32() 268 v.f = vmulq(v.f, vecTmp); in vrecip_f32() 270 v.f = vdupq_m(v.f, F32_MAX, vcmpeqq(vecIn, 0.0f)); in vrecip_f32() 274 v.f = vnegq_m(v.f, v.f, vcmpltq(vecIn, 0.0f)); in vrecip_f32() 275 return v.f; in vrecip_f32()
|
/cmsis-dsp-latest/PythonWrapper/examples/ |
D | Noise suppression.ipynb | 207 …v/BAD+/wQA/P8BAAEAAQAAAAEAAgAAAP7/AAD//wEA///9/wMA/f8DAPz/AwD9/wIABAD7/wYAAAD9/wAA//8AAPz/AQD9/wMA… 346 "def clean_vad(v):\n", 347 " v = np.hstack([[0],v,[0]])\n", 349 " vmin=[np.min(l) for l in sliding_window_view(v,3)]\n", 704 …v///wIA/v8AAP3/BAD8/wAA//8EAAMA/v8AAAEA//8GAPz//v8EAP//AgAAAAUA/v8AAAAA/v/+//3/AwD+/wYA+P8DAAAAAgD… 801 " def subnoise(self,v):\n", 803 " energy = v * np.conj(v) + 1e-6\n", 808 " return(v * scaling)\n", 850 " for (w,v) in zip(self._slices,self._vad):\n", 852 " if v==1:\n", [all …]
|