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

What are the polynomial points for F(4,5)??? #22

Open
victorygogogo opened this issue Jul 4, 2019 · 7 comments
Open

What are the polynomial points for F(4,5)??? #22

victorygogogo opened this issue Jul 4, 2019 · 7 comments

Comments

@victorygogogo
Copy link

No description provided.

@andravin
Copy link
Owner

andravin commented Jul 4, 2019

Because F(4,5) is the same degree as F(6,3), the same 7 interpolation points should work for both algorithms.

Generally for any F(m,r) with m+r-2 = n, you can try the same n interpolation points.

Following the example in the README, try

>>> from sympy import Rational
>>> wincnn.showCookToomFilter((0,1,-1,2,-2,Rational(1,2),-Rational(1,2)), 4, 5)

Hope that helps.

@victorygogogo
Copy link
Author

thank you very much

@victorygogogo
Copy link
Author

(0,1,-1,Rational(1,2),-Rational(1,2),2,-2 this interp can get the right result ?

@andravin
Copy link
Owner

andravin commented Jul 9, 2019

Yes, the order you list the points in does not matter .. and otherwise your list is the same as mine.

The usual caveat applies: the more interpolation points your algorithm uses, the greater the numeric error when computed with limited precision arithmetic.

Increasingly, I am only interested in the shortest convolution algorithms, because the latest hardware tends not to have enough memory bandwidth to make the larger algorithms efficient. Also F(2,3) can be accurate even with low precision arithmetic.

@victorygogogo
Copy link
Author

so if use low precision data type such as float16 ,f(2,3) can ignore the error ?

@andravin
Copy link
Owner

Yes, F(2,3) should work well with float16 precision, but as always, actually measure the error compared to a high precision direct convolution for your application!

@Shipley1105
Copy link

How to compute F(7,3)?

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

3 participants