- Timestamp:
- 2015-06-05T13:38:54-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/grobner.lisp
r135 r161 193 193 (defun reduced-grobner (ring f &optional (start 0) (top-reduction-only $poly_top_reduction_only)) 194 194 (reduction ring (grobner ring f start top-reduction-only))) 195 196 (defun set-pair-heuristic (method)197 "Sets up variables *PAIR-KEY-FUNCTION* and *PAIR-ORDER* used198 to determine the priority of critical pairs in the priority queue."199 (ecase method200 ((sugar :sugar $sugar)201 (setf *pair-key-function* #'sugar-pair-key202 *pair-order* #'sugar-order))203 ; ((minimal-mock-spoly :minimal-mock-spoly $minimal_mock_spoly)204 ; (setf *pair-key-function* #'mock-spoly205 ; *pair-order* #'mock-spoly-order))206 ((minimal-lcm :minimal-lcm $minimal_lcm)207 (setf *pair-key-function* #'(lambda (p q)208 (monom-lcm (poly-lm p) (poly-lm q)))209 *pair-order* #'reverse-monomial-order))210 ((minimal-total-degree :minimal-total-degree $minimal_total_degree)211 (setf *pair-key-function* #'(lambda (p q)212 (monom-total-degree213 (monom-lcm (poly-lm p) (poly-lm q))))214 *pair-order* #'<))215 ((minimal-length :minimal-length $minimal_length)216 (setf *pair-key-function* #'(lambda (p q)217 (+ (poly-length p) (poly-length q)))218 *pair-order* #'<))))219 195 220 196
Note:
See TracChangeset
for help on using the changeset viewer.