Changeset 2605 for branches/f4grobner/polynomial.lisp
- Timestamp:
- 2015-06-20T01:17:39-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/polynomial.lisp
r2604 r2605 120 120 The result is stored in SELF. This implementation does 121 121 no consing, entirely reusing the sells of SELF and OTHER." 122 123 124 125 126 127 128 129 130 131 132 133 134 135 (pop termlist1))))122 (with-slots ((termlist1 termlist) (order1 order)) 123 self 124 (with-slots ((termlist2 termlist) (order2 order)) 125 other 126 ;; Ensure orders are compatible 127 (unless (eq order1 order2) 128 (setf termlist2 (sort termlist2 order1) 129 order2 order1)) 130 ;; Create dummy head 131 (push nil termlist1) 132 (push nil termlist2) 133 (fast-add-to termlist1 termlist2 order1) 134 ;; Remove dummy head 135 (pop termlist1))) 136 136 self) 137 137
Note:
See TracChangeset
for help on using the changeset viewer.