Menu

#615 REARRAY complains about non-numeric size argument

closed
nobody
Lisp Core (457)
5
2009-01-03
2004-10-12
No

REARRAY complains if the size argument is not numeric.
Example:

N: 8$
ARRAY (aa, float, 2^N)$ /* OK!! */
REARRAY (aa, 3^N)$ /* OOPS !! "Argument X
is not a NUMBER" */

There is an ancient FFT demo file,
.../share/numeric/fft.dem, which uses REARRAY with an
expression argument. So perhaps it did work at some
point in the past.

I guess that REARRAY could attempt to evaluate its size
argument if it's not numeric. I don't know what is the
usual course of action for Maxima functions.

I'm running Maxima 5.9.1 (cmucl) on linux.

Discussion

  • Robert Dodier

    Robert Dodier - 2006-07-31

    Logged In: YES
    user_id=501686

    Just need to map MEVAL over the dimension arguments of
    rearray. Present behavior looks like a simple oversight.

     
  • Robert Dodier

    Robert Dodier - 2006-07-31
    • labels: --> Lisp Core
     
  • Dieter Kaiser

    Dieter Kaiser - 2009-01-03

    As proposed MEVAL over the dimenension arguments of rearry added (Revision 1.9).
    Closing this bug report as fixed.

    Dieter Kaiser

     
  • Dieter Kaiser

    Dieter Kaiser - 2009-01-03
    • status: open --> closed
     

Log in to post a comment.