/cmsis-dsp-3.5.0/cmsisdsp/ |
D | datatype.py | 20 def convert(samples,format): argument 35 return(f.toQ31(np.array(samples))) 37 return(f.toQ15(np.array(samples))) 39 return(f.toQ7(np.array(samples))) 41 return(np.array(samples).astype(dtype=np.float64)) 43 return(np.array(samples).astype(dtype=np.float32)) 45 return(np.array(samples).astype(dtype=np.float16))
|
/cmsis-dsp-3.5.0/Testing/PatternGeneration/ |
D | Decimate.py | 29 samples=np.random.randn(NBSAMPLES) 32 samples = Tools.normalize(samples) 36 config.writeInput(1, samples,"Samples") 130 samples=np.random.randn(nbsamples) 131 samples=Tools.normalize(samples) 135 output=upfirdn(b,samples,up=1,down=q,axis=-1,mode='constant',cval=0) 139 allsamples += list(samples) 145 ref += [q,len(b),len(samples),len(output)] 185 samples=np.random.randn(nbsamples) 186 samples=Tools.normalize(samples) [all …]
|
D | BIQUAD.py | 22 samples=np.random.randn(NBSAMPLES) 25 samples = Tools.normalize(samples) 30 config.writeInput(1, samples,"Samples") 136 samples=np.random.randn(b) 137 samples = Tools.normalize(samples) 142 stereo = np.empty((samples.size + samplesB.size,), dtype=samples.dtype) 143 stereo[0::2] = samples 149 output=signal.sosfilt(sos,samples) 160 allsamples += list(samples)
|
D | FastMath.py | 134 samples=np.random.randn(NBSAMPLES) 135 samples = np.abs(Tools.normalize(samples)) 136 config.writeInput(1, samples,"Samples") 143 samples=cartesian(numerator,denominator) 144 numerator=[x[0] for x in samples] 145 denominator=[x[1] for x in samples] 147 result=[divide(format,x) for x in samples] 287 samples=np.concatenate((np.array([0.0,1.0]),np.linspace(-0.4,0.4))) 288 config.writeInput(1, samples,"ExpInput") 289 v = np.exp(samples) [all …]
|
D | Controller.py | 15 samples=np.random.randn(NBSAMPLES) 16 samples = Tools.normalize(samples) 17 config.writeInput(1, samples,"Samples")
|
D | FIR.py | 21 samples=np.random.randn(NBSAMPLES) 25 samples = Tools.normalize(samples) 32 config.writeInput(1, samples,"Samples")
|
/cmsis-dsp-3.5.0/Testing/Source/Benchmarks/ |
D | TransformQ15.cpp | 47 samples.reload(TransformQ15::INPUTC_Q15_ID,mgr,2*this->nbSamples); in setUp() 50 this->pSrc=samples.ptr(); in setUp() 58 samples.reload(TransformQ15::INPUTR_Q15_ID,mgr,this->nbSamples); in setUp() 61 this->pSrc=samples.ptr(); in setUp() 68 samples.reload(TransformQ15::INPUTR_Q15_ID,mgr,this->nbSamples); in setUp() 73 this->pSrc=samples.ptr(); in setUp() 91 samples.reload(TransformQ15::INPUTC_Q15_ID,mgr,2*this->nbSamples); in setUp() 94 this->pSrc=samples.ptr(); in setUp() 108 samples.reload(TransformQ15::INPUTC_Q15_ID,mgr,2*this->nbSamples); in setUp() 111 this->pSrc=samples.ptr(); in setUp()
|
D | TransformQ31.cpp | 46 samples.reload(TransformQ31::INPUTC_Q31_ID,mgr,2*this->nbSamples); in setUp() 49 this->pSrc=samples.ptr(); in setUp() 57 samples.reload(TransformQ31::INPUTR_Q31_ID,mgr,this->nbSamples); in setUp() 60 this->pSrc=samples.ptr(); in setUp() 67 samples.reload(TransformQ31::INPUTR_Q31_ID,mgr,this->nbSamples); in setUp() 72 this->pSrc=samples.ptr(); in setUp() 90 samples.reload(TransformQ31::INPUTC_Q31_ID,mgr,2*this->nbSamples); in setUp() 93 this->pSrc=samples.ptr(); in setUp() 107 samples.reload(TransformQ31::INPUTC_Q31_ID,mgr,2*this->nbSamples); in setUp() 110 this->pSrc=samples.ptr(); in setUp()
|
D | TransformF32.cpp | 46 samples.reload(TransformF32::INPUTC_F32_ID,mgr,2*this->nbSamples); in setUp() 49 this->pSrc=samples.ptr(); in setUp() 58 samples.reload(TransformF32::INPUTR_F32_ID,mgr,2*this->nbSamples); in setUp() 62 this->pSrc=samples.ptr(); in setUp() 72 samples.reload(TransformF32::INPUTR_F32_ID,mgr,this->nbSamples); in setUp() 76 this->pSrc=samples.ptr(); in setUp() 94 samples.reload(TransformF32::INPUTC_F32_ID,mgr,2*this->nbSamples); in setUp() 97 this->pSrc=samples.ptr(); in setUp() 111 samples.reload(TransformF32::INPUTC_F32_ID,mgr,2*this->nbSamples); in setUp() 114 this->pSrc=samples.ptr(); in setUp()
|
D | TransformF16.cpp | 37 samples.reload(TransformF16::INPUTC_F16_ID,mgr,2*this->nbSamples); in setUp() 40 this->pSrc=samples.ptr(); in setUp() 50 samples.reload(TransformF16::INPUTR_F16_ID,mgr,2*this->nbSamples); in setUp() 54 this->pSrc=samples.ptr(); in setUp() 66 samples.reload(TransformF16::INPUTC_F16_ID,mgr,2*this->nbSamples); in setUp() 69 this->pSrc=samples.ptr(); in setUp() 83 samples.reload(TransformF16::INPUTC_F16_ID,mgr,2*this->nbSamples); in setUp() 86 this->pSrc=samples.ptr(); in setUp()
|
D | SVMF16.cpp | 59 samples.reload(SVMF16::INPUT_F16_ID,mgr,this->vecDim); in setUp() 70 inp=samples.ptr() + nbi; in setUp() 81 samples.reload(SVMF16::INPUT_F16_ID,mgr,this->vecDim); in setUp() 92 inp=samples.ptr() + nbi; in setUp() 101 samples.reload(SVMF16::INPUT_F16_ID,mgr,this->vecDim); in setUp() 112 inp=samples.ptr() + nbi; in setUp() 120 samples.reload(SVMF16::INPUT_F16_ID,mgr,this->vecDim); in setUp() 131 inp=samples.ptr() + nbi; in setUp()
|
D | SVMF32.cpp | 59 samples.reload(SVMF32::INPUT_F32_ID,mgr,this->vecDim); in setUp() 70 inp=samples.ptr() + nbi; in setUp() 81 samples.reload(SVMF32::INPUT_F32_ID,mgr,this->vecDim); in setUp() 92 inp=samples.ptr() + nbi; in setUp() 101 samples.reload(SVMF32::INPUT_F32_ID,mgr,this->vecDim); in setUp() 112 inp=samples.ptr() + nbi; in setUp() 120 samples.reload(SVMF32::INPUT_F32_ID,mgr,this->vecDim); in setUp() 131 inp=samples.ptr() + nbi; in setUp()
|
D | SupportF16.cpp | 44 samples.reload(SupportF16::SAMPLES_F16_ID,mgr,this->nbSamples); in setUp() 45 this->pSrc=samples.ptr(); in setUp() 60 samples.reload(SupportF16::INPUTS6_F16_ID,mgr,this->nbSamples); in setUp() 63 this->pSrc=samples.ptr(); in setUp()
|
D | SupportF32.cpp | 48 samples.reload(SupportF32::SAMPLES_F32_ID,mgr,this->nbSamples); in setUp() 49 this->pSrc=samples.ptr(); in setUp() 68 samples.reload(SupportF32::INPUTS6_F32_ID,mgr,this->nbSamples); in setUp() 71 this->pSrc=samples.ptr(); in setUp()
|
D | BIQUADF16.cpp | 38 samples.reload(BIQUADF16::SAMPLES1_F16_ID,mgr,this->nbSamples); in setUp() 51 samples.reload(BIQUADF16::SAMPLES1_F16_ID,mgr,this->nbSamples); in setUp() 81 samples.reload(BIQUADF16::SAMPLES1_F16_ID,mgr,2*this->nbSamples); in setUp() 93 this->pSrc=samples.ptr(); in setUp()
|
D | BIQUADF32.cpp | 38 samples.reload(BIQUADF32::SAMPLES1_F32_ID,mgr,this->nbSamples); in setUp() 51 samples.reload(BIQUADF32::SAMPLES1_F32_ID,mgr,this->nbSamples); in setUp() 81 samples.reload(BIQUADF32::SAMPLES1_F32_ID,mgr,2*this->nbSamples); in setUp() 93 this->pSrc=samples.ptr(); in setUp()
|
D | FIRF32.cpp | 33 samples.reload(FIRF32::SAMPLES1_F32_ID,mgr,this->nbSamples); in setUp() 56 this->pSrc=samples.ptr(); in setUp() 68 this->pSrc=samples.ptr(); in setUp() 80 this->pSrc=samples.ptr(); in setUp()
|
D | FIRQ15.cpp | 32 samples.reload(FIRQ15::SAMPLES1_Q15_ID,mgr,this->nbSamples); in setUp() 55 this->pSrc=samples.ptr(); in setUp() 64 this->pSrc=samples.ptr(); in setUp() 76 this->pSrc=samples.ptr(); in setUp()
|
D | FIRQ31.cpp | 33 samples.reload(FIRQ31::SAMPLES1_Q31_ID,mgr,this->nbSamples); in setUp() 57 this->pSrc=samples.ptr(); in setUp() 67 this->pSrc=samples.ptr(); in setUp() 80 this->pSrc=samples.ptr(); in setUp()
|
D | ControllerQ15.cpp | 20 samples.reload(ControllerQ15::SAMPLES_Q15_ID,mgr,this->nbSamples); in setUp() 28 this->pSrc=samples.ptr(); in setUp()
|
D | FastMathQ15.cpp | 37 samples.reload(FastMathQ15::SAMPLES_Q15_ID,mgr,this->nbSamples); in setUp() 41 this->pSrc=samples.ptr(); in setUp()
|
/cmsis-dsp-3.5.0/Testing/Source/Tests/ |
D | SVMF16.cpp | 8 const float16_t *inp = samples.ptr(); in test_svm_linear_predict_f16() 28 const float16_t *inp = samples.ptr(); in test_svm_polynomial_predict_f16() 47 const float16_t *inp = samples.ptr(); in test_svm_rbf_predict_f16() 66 const float16_t *inp = samples.ptr(); in test_svm_sigmoid_predict_f16() 97 samples.reload(SVMF16::SAMPLES1_F16_ID,mgr,nb); in setUp() 107 samples.reload(SVMF16::SAMPLES2_F16_ID,mgr,nb); in setUp() 117 samples.reload(SVMF16::SAMPLES3_F16_ID,mgr,nb); in setUp() 127 samples.reload(SVMF16::SAMPLES4_F16_ID,mgr,nb); in setUp() 137 samples.reload(SVMF16::SAMPLES5_F16_ID,mgr,nb); in setUp()
|
D | SVMF32.cpp | 8 const float32_t *inp = samples.ptr(); in test_svm_linear_predict_f32() 28 const float32_t *inp = samples.ptr(); in test_svm_polynomial_predict_f32() 47 const float32_t *inp = samples.ptr(); in test_svm_rbf_predict_f32() 66 const float32_t *inp = samples.ptr(); in test_svm_sigmoid_predict_f32() 95 samples.reload(SVMF32::SAMPLES1_F32_ID,mgr,nb); in setUp() 105 samples.reload(SVMF32::SAMPLES2_F32_ID,mgr,nb); in setUp() 115 samples.reload(SVMF32::SAMPLES3_F32_ID,mgr,nb); in setUp() 125 samples.reload(SVMF32::SAMPLES4_F32_ID,mgr,nb); in setUp() 136 samples.reload(SVMF32::SAMPLES5_F32_ID,mgr,nb); in setUp()
|
/cmsis-dsp-3.5.0/Testing/ |
D | bench.txt | 462 Names "Number of taps","Number of samples" 493 Names "Number of taps","Number of samples" 524 Names "Number of taps","Number of samples" 555 Names "Number of taps","Number of samples" 589 Names "Number of samples A,Number of samples B" 616 Names "Number of samples A,Number of samples B" 643 Names "Number of samples A,Number of samples B" 670 Names "Number of samples A,Number of samples B" 702 Names "Number of taps","Number of samples","Decimation or Interpolation factor" 728 Names "Number of taps","Number of samples","Decimation or Interpolation factor" [all …]
|
D | bench_f16.txt | 141 Names "Number of taps","Number of samples" 176 Names "Number of samples A,Number of samples B" 211 Names "Number of stages","Number of samples" 248 Names "Number of samples" 402 Names "Number of samples","Vector dimension" 434 Names "Number of samples" 584 Names "Number of samples,Inverse FFT, Bit Reversal"
|