Changeset 4146 for branches/f4grobner
- Timestamp:
- 2016-06-02T19:33:09-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/pair-queue.lisp
r4145 r4146 102 102 (defgeneric make-critical-pair-queue (object) 103 103 (:documentation "A factory of critical-pair-queue objects.") 104 (:method ((self s trategy))104 (:method ((self selection-strategy)) 105 105 "Creates a priority queue with selection strategy STRATEGY." 106 106 (with-slots (pair-key-fn pair-order-fn) … … 113 113 :test pair-order-fn)))) 114 114 115 (defun make-critical-pairs (poly-list &optional (start 0) 115 (defun make-critical-pairs (poly-list 116 &optional (start 0) 116 117 &aux 117 118 (s (1- (length poly-list)))) … … 122 123 (nconc (makelist (make-instance 'critical-pair :first (elt poly-list i) :second (elt poly-list j)) 123 124 (i 0 (1- start)) (j start s)) 124 125 125 (makelist (make-instance 'critical-pair :first (elt poly-list i) :second (elt poly-list j)) 126 (i start (1- s)) (j (1+ i) s)))) 126 127 127 128 (defgeneric enqueue-critical-pairs (self pair-lst)
Note:
See TracChangeset
for help on using the changeset viewer.