Changeset 3639 for branches/f4grobner
- Timestamp:
- 2015-09-05T20:40:52-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/polynomial.lisp
r3634 r3639 154 154 (defmethod universal-zerop ((self poly)) 155 155 "Return T iff SELF is a zero polynomial." 156 (null (poly-termlist self))) )156 (null (poly-termlist self))) 157 157 158 158 (defgeneric poly-length (self) … … 234 234 (eval-when (:compile-toplevel :load-toplevel :execute) 235 235 236 (def-add/subtract-method poly-add-to nil236 (def-add/subtract-method add-to nil 237 237 "Adds to polynomial SELF another polynomial OTHER. 238 238 This operation destructively modifies both polynomials. … … 240 240 no consing, entirely reusing the sells of SELF and OTHER.") 241 241 242 (def-add/subtract-method poly-subtract-from unary-minus242 (def-add/subtract-method subtract-from unary-minus 243 243 "Subtracts from polynomial SELF another polynomial OTHER. 244 244 This operation destructively modifies both polynomials. … … 255 255 (defun add-termlists (p q order-fn) 256 256 "Destructively adds two termlists P and Q ordered according to ORDER-FN." 257 (fast-add/subtract p q order-fn #' poly-add-to nil))257 (fast-add/subtract p q order-fn #'add-to nil)) 258 258 259 259 (defmacro multiply-term-by-termlist-dropping-zeros (term termlist
Note:
See TracChangeset
for help on using the changeset viewer.