Changeset 3323
- Timestamp:
- 2015-06-23T10:16:12-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/monom.lisp
r3322 r3323 254 254 255 255 (defmethod left-tensor-product-by ((self monom) (other monom)) 256 (with-slots ((exponents1 exponents) (dimension1 dimension))257 self 258 (with-slots ((exponents2 exponents) (dimension2 dimension))256 (with-slots ((exponents1 exponents)) 257 self 258 (with-slots ((exponents2 exponents)) 259 259 other 260 (setf dimension1 (+ dimension1 dimension2) 261 exponents1 (concatenate 'vector exponents2 exponents1)))) 260 (setf exponents1 (concatenate 'vector exponents2 exponents1)))) 262 261 self) 263 262 264 263 (defmethod right-tensor-product-by ((self monom) (other monom)) 265 (with-slots ((exponents1 exponents) (dimension1 dimension))266 self 267 (with-slots ((exponents2 exponents) (dimension2 dimension))264 (with-slots ((exponents1 exponents)) 265 self 266 (with-slots ((exponents2 exponents)) 268 267 other 269 (setf dimension1 (+ dimension1 dimension2) 270 exponents1 (concatenate 'vector exponents1 exponents2)))) 268 (setf exponents1 (concatenate 'vector exponents1 exponents2)))) 271 269 self) 272 270 … … 274 272 "Drop the first K variables in monomial M." 275 273 (declare (fixnum k)) 276 (with-slots (dimension exponents) 277 self 278 (setf dimension (- dimension k) 279 exponents (subseq exponents k))) 274 (with-slots (exponents) 275 self 276 (setf exponents (subseq exponents k))) 280 277 self) 281 278
Note:
See TracChangeset
for help on using the changeset viewer.