[SciPy-dev] FFT docstrings (was: Scipy Tutorial (and updating it))

Stéfan van der Walt stefan at sun.ac.za
Thu Dec 18 09:37:37 EST 2008


Hi Tom

2008/12/18 Tom Grydeland <tom.grydeland at gmail.com>:
> A comment was dropped on the `ifft` routine re the semantics of the
> zero padding done when `n > len(a)`.  I wrote a note in the
> documentation to address the issue, but at the same time I thought
> that perhaps we could add a helper routine (I suggest the name
> `ifftpad`) to implement the padding that the commenter would like to
> see, e.g.,
>
> ifftpad(a, m) -> _r[a[:n/2], zeros((m-n)/2), a[n/2:], zeros((m-n)/2) ]

I've been wanting this for a while, so I'm all in favour.

Cheers
Stéfan



More information about the SciPy-Dev mailing list