#86 Doing a FFT on a vector with just one entry crashes gretl


The fft function of gretl allows the user to calculate the fourier transformation of a matrix/vector. If the vector consists of just one entry per column, the fft is calculated, too, although in this case the calculation is meaningless.
The problem is that after this calculation gretl is rather unstable. Under Linux you can see glibc complaing about double free pointers. Under Windows gretl sometimes just disappears or crashes with a segmentation fault.
As doing this kind of calculation is meaningless and most of the time an error of the gretl script, gretl should throw an error when it a fft is performed on such a vector.


  • Riccardo "Jack" Lucchetti

    Fixed. If you attempt fft() or ffti() on matrices with less than 2 rows, an error is returned. Thanks!

  • Allin Cottrell

    Allin Cottrell - 2009-01-16
    • labels: --> numerical errors
    • assigned_to: nobody --> jacklucchetti
  • Riccardo "Jack" Lucchetti

    • status: open --> closed-fixed

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks