Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with naive vs FFT convolver test? #4

Open
marcel303 opened this issue Apr 10, 2018 · 0 comments
Open

Issue with naive vs FFT convolver test? #4

marcel303 opened this issue Apr 10, 2018 · 0 comments

Comments

@marcel303
Copy link

Hi,

Shouldn't the line:
if (relError > relTolerance && absError > absTolerance)

Over here,

if (relError > relTolerance && absError > absTolerance)

Read:
if (relError > relTolerance || absError > absTolerance)

Right now it fails if and only if both fail. Isn't it expected the test fails if either absolute or relative error exceeds the threshold? (so logical or should be used).

There is another similar test in the same file by the way.

Regards,
Marcel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant