- Timestamp:
- 2015-06-20T01:42:32-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/polynomial.lisp
r2609 r2610 115 115 (defmacro def-additive-operation-method (method-name) 116 116 `(defmethod ,method-name ((self poly) (other poly)) 117 "Adds to polynomial SELF another polynomial OTHER. 118 This operation destructively modifies both polynomials. 119 The result is stored in SELF. This implementation does 120 no consing, entirely reusing the sells of SELF and OTHER." 117 121 118 (with-slots ((termlist1 termlist) (order1 order)) 122 119 self … … 135 132 self)) 136 133 137 (def-additive-operation-method 'add-to) 138 (def-additive-operation-method 'subtract-from) 134 (def-additive-operation-method add-to 135 "Adds to polynomial SELF another polynomial OTHER. 136 This operation destructively modifies both polynomials. 137 The result is stored in SELF. This implementation does 138 no consing, entirely reusing the sells of SELF and OTHER.") 139 140 (def-additive-operation-method subtract-from 141 "Subtracts from polynomial SELF another polynomial OTHER. 142 This operation destructively modifies both polynomials. 143 The result is stored in SELF. This implementation does 144 no consing, entirely reusing the sells of SELF and OTHER.") 139 145 140 146 (defmethod unary-uminus ((self poly)))
Note:
See TracChangeset
for help on using the changeset viewer.