- Timestamp:
- 2015-06-09T13:30:04-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/order.lisp
r506 r897 48 48 "Return T if P>Q with respect to lexicographic order, otherwise NIL. 49 49 The second returned value is T if P=Q, otherwise it is NIL." 50 (declare (type monom p q) (type fixnum start end))51 50 (do ((i start (1+ i))) 52 51 ((>= i end) (values nil t)) … … 62 61 "Return T if P>Q with respect to graded lexicographic order, otherwise NIL. 63 62 The second returned value is T if P=Q, otherwise it is NIL." 64 (declare (type monom p q) (type fixnum start end))65 63 (let ((d1 (monom-total-degree p start end)) 66 64 (d2 (monom-total-degree q start end))) … … 79 77 not have a minimal element. This order is useful in constructing other 80 78 orders." 81 (declare (type monom p q) (type fixnum start end))82 79 (do ((i (1- end) (1- i))) 83 80 ((< i start) (values nil t)) … … 94 91 "Return T if P>Q with respect to graded reverse lexicographic order, 95 92 NIL otherwise. The second returned value is T if P=Q, otherwise it is NIL." 96 (declare (type monom p q) (type fixnum start end))97 93 (let ((d1 (monom-total-degree p start end)) 98 94 (d2 (monom-total-degree q start end))) … … 106 102 "Return T if P>Q with respect to inverse lexicographic order, NIL otherwise 107 103 The second returned value is T if P=Q, otherwise it is NIL." 108 (declare (type monom p q) (type fixnum start end))109 104 (do ((i (1- end) (1- i))) 110 105 ((< i start) (values nil t)) … … 159 154 and *SECONDARY-ELIMINATION-ORDER* control the behavior on the first K 160 155 and the remaining variables, respectively." 161 (declare (type fixnum k))162 156 #'(lambda (p q &optional (start 0) (end (monom-dimension p))) 163 (declare (type monom p q) (type fixnum start end))164 157 (multiple-value-bind (primary equal) 165 158 (funcall *primary-elimination-order* p q start k) … … 170 163 (defun elimination-order-1 (p q &optional (start 0) (end (monom-dimension p))) 171 164 "Equivalent to the function returned by the call to (ELIMINATION-ORDER 1)." 172 (declare (type monom p q) (type fixnum start end))173 165 (cond 174 166 ((> (monom-elt p start) (monom-elt q start)) (values t nil))
Note:
See TracChangeset
for help on using the changeset viewer.