Lines Matching refs:nb
31 conjPart = res[nb:nb//2:-1].conj()
32 refPart = res[1:nb//2]
35 nb = 32 variable
36 signal = np.cos(2 * np.pi * np.arange(nb) / nb)*np.cos(0.2*2 * np.pi * np.arange(nb) / nb)
41 assert(len(ref) == (nb // 2) + 1)
42 assert(len(invref) == nb)
48 RFFT_F_IN_LENGTH = nb # real
49 RFFT_F_OUT_LENGTH = nb # complex (so nb // 2 complex)
51 RIFFT_F_IN_LENGTH = nb # complex
52 RIFFT_F_OUT_LENGTH = nb # real
56 RFFT_Q_IN_LENGTH = nb
57 RFFT_Q_OUT_LENGTH = 2*nb
60 RIFFT_Q_IN_LENGTH = nb + 2
61 RIFFT_Q_OUT_LENGTH = nb
64 referenceFloat=np.zeros(nb)
86 status=dsp.arm_rfft_fast_init_f64(rfftf64,nb)
96 status=dsp.arm_rfft_fast_init_f64(rifftf64,nb)
109 status=dsp.arm_rfft_fast_init_f32(rfftf32,nb)
120 status=dsp.arm_rfft_fast_init_f32(rifftf32,nb)
135 status=dsp.arm_rfft_init_q31(rfftQ31,nb,0,1)
142 resultQ31 = resultQ31[:nb+2]
145 resultF = f.Q31toF32(resultQ31) * nb
153 status=dsp.arm_rfft_init_q31(rifftQ31,nb,1,1)
155 referenceQ31 = f.toQ31(referenceFixed/ nb)
161 assert_allclose(invref/nb,resultF,atol=1e-6)
169 status=dsp.arm_rfft_init_q15(rfftQ15,nb,0,1)
176 resultQ15 = resultQ15[:nb+2]
179 resultF = f.Q15toF32(resultQ15) * nb
187 status=dsp.arm_rfft_init_q15(rifftQ15,nb,1,1)
189 referenceQ15 = f.toQ15(referenceFixed / nb)
195 assert_allclose(invref/nb,resultF,atol=1e-3)