From: Robert D. <rob...@us...> - 2025-03-31 03:55:21
|
- **labels**: --> matrix, list, arithmetic - **status**: open --> closed - **Comment**: I've pushed commit [ fa4dcfa1d ] to give a more meaningful error message. Examples: ``` (%i2) matrix ([a, b], [c, d]) + [x, y, z]; addition: non-conformable list or matrix arguments. -- an error. To debug this try: debugmode(true); (%i3) matrix ([a, b], [c, d]) + matrix ([x, y, z], [z, y, x]); addition: non-conformable list or matrix arguments. -- an error. To debug this try: debugmode(true); (%i4) [a, b, c, d] + [x, y, z]; addition: non-conformable list or matrix arguments. -- an error. To debug this try: debugmode(true); ``` Closing this ticket as fixed. --- **[bugs:#4490] error message when adding non-conformable matrices** **Status:** closed **Group:** None **Labels:** matrix list arithmetic **Created:** Thu Feb 13, 2025 02:52 PM UTC by Barton Willis **Last Updated:** Thu Feb 13, 2025 02:52 PM UTC **Owner:** nobody For addition of non-conformable matrices, the error message should be something like "Attempt to sum non-conformable matrices", not an error message about the arguments to `fullmap.` ~~~ (%i3) matrix([1,2],[3,4]) + matrix([a,b]); fullmap: arguments must have same formal structure. -- an error. To debug this try: debugmode(true); ~~~ --- 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. |