- Timestamp:
- 2015-06-21T16:22:06-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/monom.lisp
r3018 r3020 253 253 (plusp (elt exponents k)))) 254 254 255 (defmethod r-tensor-product ((m1 monom) (m2monom))256 (with-slots ((exponents1 exponents) (dimension1 dimension)) 257 m1255 (defmethod left-tensor-product-by ((self monom) (other monom)) 256 (with-slots ((exponents1 exponents) (dimension1 dimension)) 257 self 258 258 (with-slots ((exponents2 exponents) (dimension2 dimension)) 259 m2 260 (make-instance 'monom 261 :dimension (+ dimension1 dimension2) 262 :exponents (concatenate 'vector exponents1 exponents2))))) 259 other 260 (setf dimension1 (+ dimension1 dimension2) 261 exponents1 (concatenate 'vector exponents2 exponents1))))) 262 263 (defmethod right-tensor-product-by ((self monom) (other monom)) 264 (with-slots ((exponents1 exponents) (dimension1 dimension)) 265 self 266 (with-slots ((exponents2 exponents) (dimension2 dimension)) 267 other 268 (setf dimension1 (+ dimension1 dimension2) 269 exponents1 (concatenate 'vector exponents1 exponents2))))) 263 270 264 271 (defmethod r-contract ((m monom) k)
Note:
See TracChangeset
for help on using the changeset viewer.