Function: math-matrix-lud

math-matrix-lud is an autoloaded and byte-compiled function defined in calc-mtx.el.gz.

Signature

(math-matrix-lud M)

Source Code

;; Defined in /usr/src/emacs/lisp/calc/calc-mtx.el.gz
(defun math-matrix-lud (m)
  (let ((old (assoc m math-lud-cache))
	(context (list calc-internal-prec calc-prefer-frac)))
    (if (and old (equal (nth 1 old) context))
	(cdr (cdr old))
      (let* ((lud (catch 'singular (math-do-matrix-lud m)))
	     (entry (cons context lud)))
	(if old
	    (setcdr old entry)
	  (setq math-lud-cache (cons (cons m entry) math-lud-cache)))
	lud))))