Changeset 98 in CGBLisp for trunk/src/grobner.lisp


Ignore:
Timestamp:
Feb 2, 2009, 11:55:20 AM (15 years ago)
Author:
Marek Rychlik
Message:

Removed useless RCS version info. Added missing Emacs mode lines.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/grobner.lisp

    r90 r98  
     1;;; -*- Mode: Lisp; Syntax: Common-Lisp; Package: Grobner; Base: 10 -*-
    12;;; -*- Mode: Lisp; Syntax: Common-Lisp; Package: Grobner; Base: 10 -*-
    23#|
    3         $Id: grobner.lisp,v 1.8 2009/01/23 10:40:26 marek Exp $
    44  *--------------------------------------------------------------------------*
    55  |  Copyright (C) 1994, Marek Rychlik (e-mail: rychlik@math.arizona.edu)    |
     
    5555(in-package "GROBNER")
    5656
    57 (proclaim '(optimize (speed 3) (space 0) (safety 0) (debug 3)))
     57(proclaim '(optimize (speed 0) (space 0) (safety 3) (debug 3)))
    5858
    5959#+debug
     
    119119coefficients in a ring whose operations are the slots
    120120of the RING structure."
    121   (declare (optimize (speed 3) (safety 0)))
     121  (declare (optimize (speed 0) (safety 3)))
    122122  (let* ((lcm (monom-lcm (lm f) (lm g)))
    123123         (m1 (monom/ lcm (lm f)))
     
    172172on the coefficients are performed using the RING structure from the
    173173COEFFICIENT-RING package."
    174   (declare (optimize (speed 3) (safety 0)))
     174  (declare (optimize (speed 0) (safety 3)))
    175175  ;; Loop invariant: c*f=sum ai*fi+r+p
    176176  (do (r (c (ring-unit ring))
     
    908908  C*F= sum A[i]*FL[i] + R
    909909"
    910   (declare (optimize (speed 3) (safety 0)))
     910  (declare (optimize (speed 0) (safety 3)))
    911911  (do (r
    912912       (c (ring-unit ring))
     
    11621162the partial remainder exceeds SUGAR-LIMIT then the calculation is stopped and the partial
    11631163remainder is returned, although it is not fully reduced with respect to FL."
    1164   (declare (optimize (speed 3) (safety 0)))
     1164  (declare (optimize (speed 0) (safety 3)))
    11651165  ;; Loop invariant: c*f=sum ai*fi+r+p
    11661166  (do ((r (cons nil 0))
     
    14601460of pairs (MONOMIAL . PRODUCT-POLY) where PRODUCT-POLY is (POLY* MONOMIAL G)."
    14611461
    1462   (declare (optimize (speed 3) (safety 0)))
     1462  (declare (optimize (speed 0) (safety 3)))
    14631463  ;; Loop invariant: c*f=sum ai*fi+r+p
    14641464  (do (r (c (ring-unit ring))
     
    15511551(defun cached-spoly (f g pred ring cache-f cache-g)
    15521552  "Uses CACHE to fetch products of monomials and polynomials."
    1553   (declare (optimize (speed 3) (safety 0)))
     1553  (declare (optimize (speed 0) (safety 3)))
    15541554  (let* ((lcm (monom-lcm (lm f) (lm g)))
    15551555         (m1 (monom/ lcm (lm f)))
     
    15851585the partial remainder exceeds SUGAR-LIMIT then the calculation is stopped and the partial
    15861586remainder is returned, although it is not fully reduced with respect to FL."
    1587   (declare (optimize (speed 3) (safety 0)))
     1587  (declare (optimize (speed 0) (safety 3)))
    15881588  ;; Loop invariant: c*f=sum ai*fi+r+p
    15891589  (do ((r (cons nil 0))
Note: See TracChangeset for help on using the changeset viewer.