invert_by_lu does not work as expected



Robert Dodier <robert.dodier at gmail.com> writes:

> OK, here is an even smaller example which triggers the bug:
>  invert_by_lu (matrix ([v [0]]));
>
> The error is caused by a name collision: there is a special
> variable LB in src/grind.lisp (left bracket for arrays)
> and apparently the symbol LB in share/linearalgebra/lu.lisp
> refers to that same variable and clobbers it.
> Renaming LB in lu.lisp to FOO-LB avoids the error.
> I would have expected LB in lu.lisp to be a lexical variable; why not?
> best, Robert Dodier

Grepping shows it declared special in src/fortra.lisp. I haven't looked
further into why.

Rupert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 315 bytes
Desc: not available
URL: <http://www.math.utexas.edu/pipermail/maxima/attachments/20120111/5580fd4f/attachment.pgp>;