Changeset 2320
- Timestamp:
- 2015-06-18T19:44:22-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/monom.lisp
r2319 r2320 240 240 (defmethod r-gcd ((m1 monom) (m2 monom)) 241 241 "Returns greatest common divisor of monomials M1 and M2." 242 (with-slots ((exponents1 exponents) )242 (with-slots ((exponents1 exponents) (dimension1 dimension)) 243 243 m1 244 244 (with-slots ((exponents2 exponents)) 245 245 m2 246 246 (let* ((exponents (copy-seq exponents1)) 247 (dimension (reduce #'+ exponents)))247 (dimension dimension1)) 248 248 (map-into exponents #'min exponents1 exponents2) 249 249 (make-instance 'monom :dimension dimension :exponents exponents)))))
Note:
See TracChangeset
for help on using the changeset viewer.