]> git.eshelyaron.com Git - emacs.git/commit
Calc: fix LU decomposition for non-numeric matrices (bug#41223)
authorMattias Engdegård <mattiase@acm.org>
Wed, 13 May 2020 13:17:10 +0000 (15:17 +0200)
committerMattias Engdegård <mattiase@acm.org>
Thu, 14 May 2020 08:28:51 +0000 (10:28 +0200)
commit1d559581b3bcd91644e44b1e3a3788614d99924f
tree1d50f80af6168494032043f4191b486dc90f62b0
parenta4671733b7b990e83ef6daed4d17ab240a3591b5
Calc: fix LU decomposition for non-numeric matrices (bug#41223)

Computing determinant and inverse for on some matrices containing
non-numeric elements failed or gave the wrong result.
Reported by Mauro Aranda.

* lisp/calc/calc-mtx.el (math-do-matrix-lud): Don't use zero as pivot.
* test/lisp/calc/calc-tests.el (calc-matrix-determinant): New test.
lisp/calc/calc-mtx.el
test/lisp/calc/calc-tests.el