- Timestamp:
- 2016-05-30T00:25:21-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/pair-queue.lisp
r3943 r3944 54 54 55 55 (defclass selection-strategy () 56 ((pair-key-fn :initform #'(lambda (p q) (universal-lcm (leading-monomial p) (leading-monomial q))) )57 (pair-order-fn :initform #'lex> ))56 ((pair-key-fn :initform #'(lambda (p q) (universal-lcm (leading-monomial p) (leading-monomial q))) :initarg :pair-key-fn :accessor pair-key-fn) 57 (pair-order-fn :initform #'lex> :initarg :pair-order-fn :accessor pair-order-fn)) 58 58 (:documentation "Represents the normal critical pair selection 59 59 strategy. The two ingredients of a strategy is a function … … 98 98 :test pair-order-fn)))) 99 99 100 (defmethod print-object ((self critical-pair-queue) stream) 101 (print-unreadable-object (self stream :type t :identity t) 102 (with-accessors ((pair-key-fn pair-key-fn) 103 (pair-order-fn pair-order-fn) 104 (pq pq)) 105 self 106 (format stream "PAIR-KEY-FN=~A PAIR-ORDER-FN=~A PQ=~A" 107 pair-key-fn pair-order-fn pq)))) 108 109 100 110 (defun pair-queue-initialize (pq f start 101 111 &aux
Note:
See TracChangeset
for help on using the changeset viewer.