Changeset 2761 for branches/f4grobner
- Timestamp:
- 2015-06-20T19:22:05-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/polynomial.lisp
r2760 r2761 102 102 103 103 104 (defmacro fast-add/subtract (p q order-fn 105 add/subtract-method-name 106 &optional 107 (uminus-method-name nil uminus-method-name-supplied-p)) 104 (defmacro fast-add/subtract (p q order-fn add/subtract-fn uminus-fn) 108 105 "Return an expression which will efficiently adds/subtracts two 109 106 polynomials, P and Q. The addition/subtraction of coefficients is … … 131 128 ) 132 129 (equal-p 133 (let ((s (funcall ,add/subtract- method-name(lc p) (lc q))))130 (let ((s (funcall ,add/subtract-fn (lc p) (lc q)))) 134 131 (cond 135 132 ((r-zerop s) … … 144 141 ;;Negate the term of Q if UMINUS provided, signallig 145 142 ;;that we are doing subtraction 146 ,@(when uminus- method-name-supplied-p147 `((setf (lc q) (funcall #',uminus- method-name(lc q)))))143 ,@(when uminus-fn 144 `((setf (lc q) (funcall #',uminus-fn (lc q))))) 148 145 (rotatef (cdr q) r q))))))) 149 146
Note:
See TracChangeset
for help on using the changeset viewer.