Changeset 2744 for branches/f4grobner
- Timestamp:
- 2015-06-20T18:58:44-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/polynomial.lisp
r2743 r2744 144 144 145 145 146 (defmacro def-additive-operation-method (method-name 147 &optional 148 (doc-string nil doc-string-supplied-p)) 146 (defmacro def-add/subtract-method (method-name 147 &key 148 (documentation nil doc-string-supplied-p) 149 (subtract-p nil)) 149 150 "This macro avoids code duplication for two similar operations: ADD-TO and SUBTRACT-FROM." 150 151 `(defmethod ,method-name ((self poly) (other poly)) … … 161 162 self)) 162 163 163 (def-add itive-operation-method add-to164 (def-add/subtract-method add-to 164 165 "Adds to polynomial SELF another polynomial OTHER. 165 166 This operation destructively modifies both polynomials. … … 167 168 no consing, entirely reusing the sells of SELF and OTHER.") 168 169 169 (def-add itive-operation-method subtract-from170 (def-add/subtract-method subtract-from 170 171 "Subtracts from polynomial SELF another polynomial OTHER. 171 172 This operation destructively modifies both polynomials.
Note:
See TracChangeset
for help on using the changeset viewer.