#625 FFT fails on 2-dimensional array

closed
nobody
5
2004-11-05
2004-10-19
No

DESCRIBE (FFT) says that FFT can handle 2-dimensional
arrays, but the FFT function
(.../share/numeric/fft.lisp) complains if its input
arguments are 2-dimensional. Example:

(%i1) load ("fft");

(%i2) array (aa, float, 3, 3)$

(%i3) array (bb, float, 3, 3)$

(%i4) fft (aa, bb)$

Maxima encountered a Lisp error:

Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER:
#2A((0.0 0.0 0.0 0.0)
(0.0 0.0 0.0 0.0)
(0.0 0.0 0.0 0.0)
(0.0 0.0 0.0 0.0)) is not of type SEQUENCE

Looking at fft.lisp, I don't see that it's designed to
handle 2-dimensional arrays, although I could be
overlooking something.

Perhaps we can consider either getting FFT to handle
2-dimensional arrays, or just cutting out the stuff
about 2-dimensional arrays in the documentation. I
guess I'm in favor of the latter.

Discussion

  • Robert Dodier

    Robert Dodier - 2004-10-19

    Logged In: YES
    user_id=501686

    RECTTOPOLAR, POLARTORECT, and IFT, also in the FFT package,
    make the same complaint as FFT when the arguments are
    2-dimensional arrays.

     
  • Robert Dodier

    Robert Dodier - 2004-11-05
    • status: open --> closed
     
  • Robert Dodier

    Robert Dodier - 2004-11-05

    Logged In: YES
    user_id=501686

    I've struck out the statements about 2-d arrays in the
    descriptions of FFT, IFT, RECTTOPOLAR, and POLARTORECT
    (doc/info/Numerical.texi). Maybe at some point in the
    future someone will make a feature request for 2-d FFT. In
    the meantime, I'm closing this bug report.

     

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