Changeset 2745 for branches/f4grobner/polynomial.lisp
- Timestamp:
- 2015-06-20T19:01:43-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/polynomial.lisp
r2744 r2745 145 145 146 146 (defmacro def-add/subtract-method (method-name 147 &key148 (documentationnil doc-string-supplied-p)149 (subtract-p nil))147 (&key 148 (:doc-string nil doc-string-supplied-p) 149 (subtract-p nil))) 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)) … … 163 163 164 164 (def-add/subtract-method add-to 165 "Adds to polynomial SELF another polynomial OTHER. 165 (:doc-string 166 "Adds to polynomial SELF another polynomial OTHER. 166 167 This operation destructively modifies both polynomials. 167 168 The result is stored in SELF. This implementation does 168 no consing, entirely reusing the sells of SELF and OTHER.") 169 no consing, entirely reusing the sells of SELF and OTHER.")) 169 170 170 171 (def-add/subtract-method subtract-from 171 "Subtracts from polynomial SELF another polynomial OTHER.172 (:doc-string "Subtracts from polynomial SELF another polynomial OTHER. 172 173 This operation destructively modifies both polynomials. 173 174 The result is stored in SELF. This implementation does 174 no consing, entirely reusing the sells of SELF and OTHER.") 175 175 no consing, entirely reusing the sells of SELF and OTHER.")) 176 176 177 177 (defmethod unary-minus ((self poly))
Note:
See TracChangeset
for help on using the changeset viewer.