- Timestamp:
- 2015-06-20T19:18:09-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/polynomial.lisp
r2755 r2756 104 104 (defmacro fast-add/subtract (p q order-fn 105 105 add/subtract-method-name 106 &optional (uminus-method-name nil uminus-method-name-supplied-p)) 106 &optional 107 (uminus-method-name nil uminus-method-name-supplied-p)) 107 108 "Return an expression which will efficiently adds/subtracts two 108 109 polynomials, P and Q. The addition/subtraction of coefficients is 109 110 performed by calling ADD/SUBTRACT-METHOD-NAME. If UMINUS-METHOD-NAME 110 111 is supplied, it is used to negate the coefficients of Q which do not 111 have a corresponding coefficient in P. The code implements an efficient112 algorithm to add two polynomials represented as sorted lists of 113 terms. This function destroys both arguments, reusing the terms to 114 buildthe result."112 have a corresponding coefficient in P. The code implements an 113 efficient algorithm to add two polynomials represented as sorted lists 114 of terms. The code destroys both arguments, reusing the terms to build 115 the result." 115 116 `(macrolet ((lc (x) `(r-coeff (car ,x)))) 116 117 (do ((p ,p)
Note:
See TracChangeset
for help on using the changeset viewer.