just stumbled upon crashes of newlisp 10.6.2 on not possible Matrix ops.
Code: Select all
>(set 'A '((1 2 3) (4 5 6)))
>(det A 1e-10)
(Memory acces error) and NL crashes. Happens with or without pivot and also on (mat ...) ops.
Code: Select all
> (set 'B '((-1 1 1) (1 4 -5) (1 -2 0)))
> (set 'A '((1 2 3) (4 5 6)))
> (mat + B A)
I would expect NL not to crash but throw an error signal if Matrix dimensions are wrong.
If it is intended behaviour could you pls put a note in the docs that the user has to check proper dimensions before any Matrix op ?
Or do i miss something basic here .... ?
Heiko
Kernel 3.13.0-45-generic, Kubuntu 14.04 64bit, newLISP v.10.6.2 64-bit on Linux IPv4/6 UTF-8 libffi.
Compiled from tgz.