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

Improve performance in polynomial multiplication by using FFT #459

Open
batzor opened this issue Jul 4, 2024 · 0 comments
Open

Improve performance in polynomial multiplication by using FFT #459

batzor opened this issue Jul 4, 2024 · 0 comments
Labels
feature New feature or request scope: math scope: math

Comments

@batzor
Copy link
Contributor

batzor commented Jul 4, 2024

Currently, in univariate polynomial-by-polynomial multiplication, it uses the naive approach which takes $O(n^2)$. But if we utilize FFT, it can be reduced to $O(nlogn)$

static void DoMul(const UnivariatePolynomial<D>& a,
const UnivariatePolynomial<D>& b,
UnivariatePolynomial<D>& c) {

image

Reference: https://www.cs.toronto.edu/~denisp/csc373/docs/tutorial3-adv-writeup.pdf

@batzor batzor added the feature New feature or request label Jul 4, 2024
@chokobole chokobole added the scope: math scope: math label Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request scope: math scope: math
Projects
None yet
Development

No branches or pull requests

2 participants