close Warning: Can't synchronize with repository "(default)" (The repository directory has changed, you should resynchronize the repository with: trac-admin $ENV repository resync '(default)'). Look in the Trac log for more information.

Changeset 4485 for branches


Ignore:
Timestamp:
2016-06-15T20:30:57-07:00 (8 years ago)
Author:
Marek Rychlik
Message:

Summary: Replaced grobner-op function with a macro, as grobner-op is called a lot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/division.lisp

    r4484 r4485  
    4242
    4343
    44 (defun grobner-op (c1 c2 m f g)
     44(defmacro grobner-op (c1 c2 m f g)
    4545  "Returns C2*F-C1*M*G, where F and G are polynomials M is a monomial."
    46   (declare (type monom m) (type poly f g))
    47   (subtract (multiply f c2) (multiply g m c1)))
     46  `(subtract (multiply ,f ,c2) (multiply ,g ,m ,c1)))
    4847
    4948(defun check-loop-invariant (c f a fl r p &aux (p-zero (make-zero-for f)))
Note: See TracChangeset for help on using the changeset viewer.