Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7510909
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:22:27+00:00 2026-05-29T23:22:27+00:00

Problem description I have employed the convolution theorem to calculate convolutions efficiently. Suppose there

  • 0

Problem description

I have employed the convolution theorem to calculate convolutions efficiently. Suppose there are two real signals s1 and s2 of length N each. Then I can obtain the convolution from

import numpy as np
import numpy.fft as fft

size = len(s1)
fft_size = int(2 ** np.ceil(np.log2(2 * size - 1))) #The size for the FFT algorithm

S1 = fft.rfft(s1, fft_size) #Take FTs
S2 = fft.rfft(s2, fft_size)

convolution = fft.irfft(S1 * S2) #Take IFT

However, if I have a k singals the fft_size must be modified to read

fft_size = int(2 ** np.ceil(np.log2(k * size - 1)))

in order to avoid circular overlap.

Unfortunately, I do not know k a priori. One option is to choose a maximum value k_max but I would prefer to not have to use large amounts of memory if not absolutely necessary and I would prefer to not evaluate the FT again every time k changes.

Question

Is it possible to do one of the following

  • Take the FFT of the signal for k=1 and “zero pad in Fourier space” as necessary?
  • Prevent circular wrapping in the FFT?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T23:22:29+00:00Added an answer on May 29, 2026 at 11:22 pm
    1. Zero-padding in the frequency domain is possible, but requires far more computational effort (flops) than doing it in the time domain. It would likely be faster to IFFT, zeropad, and re-FFT to create “room” for each additional fast convolution.

    2. The longer result of a complete convolution has to go somewhere, so no, it’s not possible to prevent circular convolution when using FFTs. Even zero-padding doesn’t prevent the computation of circular overlap, it just makes sure that the overlapping in the result is equivalent to the addition of zero.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Below is the problem description and algorithm that I have written. Is there anything
I have a problem with the query below in postgres SELECT u.username,l.description,l.ip,SUBSTRING(l.createdate,0,11) as createdate,l.action
Problem Description: We have a service which has applications for main mobile OS’s. We
Problem description: I have a POJO object, which is mapped from database. Which having
Problem description: I have a listing with Jqgrid and a navigation bar view:true, edit:true,
Problem description There are different categories which contain an arbitrary amount of elements .
Problem Description I have a string S. How can I find if the string
Here is my problem description. I have 2 Objects A and B.A has a
Problem Description In my yacc parser grammar, I have the following rules and corresponding
Problem description is here : http://www.spoj.pl/problems/FASHION/ Process : Took two lists as input ,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.