emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/calc/calc-mtx.el [lexbind]


From: Miles Bader
Subject: [Emacs-diffs] Changes to emacs/lisp/calc/calc-mtx.el [lexbind]
Date: Wed, 08 Dec 2004 19:37:33 -0500

Index: emacs/lisp/calc/calc-mtx.el
diff -c emacs/lisp/calc/calc-mtx.el:1.4.4.2 emacs/lisp/calc/calc-mtx.el:1.4.4.3
*** emacs/lisp/calc/calc-mtx.el:1.4.4.2 Tue Oct 14 23:35:48 2003
--- emacs/lisp/calc/calc-mtx.el Wed Dec  8 23:36:21 2004
***************
*** 3,10 ****
  ;; Copyright (C) 1990, 1991, 1992, 1993, 2001 Free Software Foundation, Inc.
  
  ;; Author: David Gillespie <address@hidden>
! ;; Maintainers: D. Goel <address@hidden>
! ;;              Colin Walters <address@hidden>
  
  ;; This file is part of GNU Emacs.
  
--- 3,9 ----
  ;; Copyright (C) 1990, 1991, 1992, 1993, 2001 Free Software Foundation, Inc.
  
  ;; Author: David Gillespie <address@hidden>
! ;; Maintainer: Jay Belanger <address@hidden>
  
  ;; This file is part of GNU Emacs.
  
***************
*** 27,41 ****
  
  ;;; Code:
  
- 
  ;; This file is autoloaded from calc-ext.el.
- (require 'calc-ext)
  
  (require 'calc-macs)
  
- (defun calc-Need-calc-mat () nil)
- 
- 
  (defun calc-mdet (arg)
    (interactive "P")
    (calc-slow-wrapper
--- 26,36 ----
  
  ;;; Code:
  
  ;; This file is autoloaded from calc-ext.el.
  
+ (require 'calc-ext)
  (require 'calc-macs)
  
  (defun calc-mdet (arg)
    (interactive "P")
    (calc-slow-wrapper
***************
*** 176,181 ****
--- 171,180 ----
        (nth 1 m)
        (math-reject-arg m 'square-matrixp))))
  
+ ;; The variable math-det-lu is local to math-det-raw, but is
+ ;; used by math-det-step, which is called by math-det-raw.
+ (defvar math-det-lu)
+ 
  (defun math-det-raw (m)
    (let ((n (1- (length m))))
      (cond ((= n 1)
***************
*** 211,223 ****
                                (nth 3 (nth 3 m))))))
          (t (let ((lud (math-matrix-lud m)))
               (if lud
!                  (let ((lu (car lud)))
                     (math-det-step n (nth 2 lud)))
                 0))))))
  
  (defun math-det-step (n prod)
    (if (> n 0)
!       (math-det-step (1- n) (math-mul prod (nth n (nth n lu))))
      prod))
  
  ;;; This returns a list (LU index d), or nil if not possible.
--- 210,222 ----
                                (nth 3 (nth 3 m))))))
          (t (let ((lud (math-matrix-lud m)))
               (if lud
!                  (let ((math-det-lu (car lud)))
                     (math-det-step n (nth 2 lud)))
                 0))))))
  
  (defun math-det-step (n prod)
    (if (> n 0)
!       (math-det-step (1- n) (math-mul prod (nth n (nth n math-det-lu))))
      prod))
  
  ;;; This returns a list (LU index d), or nil if not possible.
***************
*** 365,369 ****
--- 364,370 ----
          (math-reject-arg m "*Singular matrix"))
      (math-reject-arg m 'square-matrixp)))
  
+ (provide 'calc-mtx)
+ 
  ;;; arch-tag: fc0947b1-90e1-4a23-8950-d8ead9c3a306
  ;;; calc-mtx.el ends here




reply via email to

[Prev in Thread] Current Thread [Next in Thread]