Changeset 2747 for branches/f4grobner
- Timestamp:
- 2015-06-20T19:05:01-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/polynomial.lisp
r2746 r2747 144 144 145 145 146 (defmacro def-add/subtract-method ( method-name146 (defmacro def-add/subtract-method (add/subtract-method-name 147 147 (&key 148 148 (doc-string nil doc-string-supplied-p) 149 ( subtract-p nil)))149 (uminus-method-name nil uminus-method-name-supplied-p))) 150 150 "This macro avoids code duplication for two similar operations: ADD-TO and SUBTRACT-FROM." 151 151 `(defmethod ,method-name ((self poly) (other poly)) … … 159 159 (setf termlist2 (sort termlist2 order1) 160 160 order2 order1)) 161 (setf termlist1 (fast-add/subtract termlist1 termlist2 order1 #',method-name)))) 161 (setf termlist1 (fast-add/subtract 162 termlist1 termlist2 order1 163 #',add/subtract-method-name 164 ,@(when uminus-method-name-supplied-p 165 (#'uminus-method-name)))))) 162 166 self)) 163 167
Note:
See TracChangeset
for help on using the changeset viewer.