"ippsFIR_32f_I" returns negative values, although neither taps nor the input are negative

"ippsFIR_32f_I" returns negative values, although neither taps nor the input are negative

Hello,

I recognize negative values after filtering with "ippsFIR_32f_I", although neither my taps (feed forward coefficients) nor the input vector are negative.
How is this possible?

Here is my code snippet, which reproduces this strange behaviour.
Note: If changing "iNumIters" to a smaller value, this behaviour does not occur anymore.

[cpp]		// initializations and declarations
		IppStatus			IppStatus; 
		IppsFIRState_32f*	pState;
		int					NFilt	= 4096;
		
		std::vector	b(NFilt, 1.0f/NFilt);			// Feed forward coefficients (taps)
		std::vector	bCheck(NFilt, 0.0f);			// vector to check coefficients
		std::vector	delayLine(NFilt,0.0f);			// initial condition
		std::vector	delayLineCheck(NFilt,0.0f);		// vector to check final condition
		std::vector	x(NFilt+1024, 0.0f);			// input signal
		for (int k=2; k 
IPP Version: 6.0.0.61
I would be very thankful for any help.
Sincerely yours
2 帖子 / 0 全新
最新文章
如需更全面地了解编译器优化,请参阅优化注意事项

Noone any idea, what could be wrong?

登陆并发表评论。