|
From: Robert D. <rob...@us...> - 2026-10-26 04:19:54
|
- **labels**: Lisp Core --> arrays, display, make\_array - **Group**: --> None --- **[bugs:#520] make\_array arrays not well integrated** **Status:** open **Group:** None **Labels:** arrays display make\_array **Created:** Tue Feb 24, 2004 01:31 AM UTC by Stavros Macrakis **Last Updated:** Mon Jul 24, 2006 02:12 AM UTC **Owner:** nobody make\_array arrays are useful but ugly. They don't print properly: ar: make\_array\(any,3\)$ ar\[1\]: sin\(x\)$ ar => \#\(NIL \(\(%SIN SIMP\) $x\) NIL\) and even worse: string\(ar\) => ?\\\#\\\(NIL\ \\\(\\\(\%SIN\ SIMP\\\)\ \$x\\\)\ NIL\\\) There is no way to write a constant array, so you can't save it in Maxima form. It's a pity that the function name "array" is taken... but we could define the external form of an array to be something like: array\_constant\( <<type and maybe size>>, \[ ...contents... \] \) e.g. array\_constant\(any,\[2,3,4\]\) is the same as block\(\[arr\],arr:make\_array\(any,3\), for i:0 thru 2 do arr\[i\]:\[2,3,4\]\[i\]\) etc. --- Sent from sourceforge.net because max...@li... is subscribed to https://sourceforge.net/p/maxima/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/maxima/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |