Changeset 3044
- Timestamp:
- 2015-06-21T16:57:02-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/polynomial.lisp
r3017 r3044 251 251 "Non-destructively multiply POLY1 by POLY2." 252 252 (multiply-by (copy-instance POLY1) (copy-instance POLY2))) 253 254 (defmethod left-tensor-product-by ((self poly) (other term)) 255 (setf (poly-termlist self) 256 (mapcan #'(lambda (term) 257 (let ((prod (left-tensor-product-by other) term)) 258 (cond 259 ((r-zerop prod) nil) 260 (t (list prod))))) 261 (poly-termlist))) 262 self) 263 264 (defmethod right-tensor-product-by ((self poly) (other term)) 265 (setf (r-coeff self) (multiply-by (r-coeff self) (r-coeff other))) 266 (call-next-method)) 267 253 268 254 269 #|
Note:
See TracChangeset
for help on using the changeset viewer.