Changeset 2591
- Timestamp:
- 2015-06-20T00:31:53-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/polynomial.lisp
r2589 r2591 86 86 self) 87 87 88 ;; Fast destructive addition of termlists89 88 (defun fast-add-to (p q) 89 "Fast destructive addition of termlists 90 Note that this assumes the presence of a 91 dummy header." 90 92 (macrolet ((lt (x) `(cadr ,x)) 91 93 (lc (x) `(r-coeff (cadr ,x)))) … … 117 119 (with-slots ((termlist2 termlist)) 118 120 other 121 ;; Create dummy head 119 122 (push nil termlist1) 120 123 (push nil termlist2) 121 124 (fast-add-to termlist1 termlist2) 122 (pop termlist))) 125 ;; Remove dummy head 126 (pop termlist1))) 123 127 self) 124 128
Note:
See TracChangeset
for help on using the changeset viewer.