Changeset 3449
- Timestamp:
- 2015-09-05T09:30:30-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/monom.lisp
r3448 r3449 149 149 (setf (elt exponents index) new-value))) 150 150 151 (def methodmonom-total-degree (m &optional (start 0) (end (monom-dimension m)))152 "Return the todal degree of a monomoal M. Optinally, a range153 of variables may be specified with arguments START and END." 154 ( declare (type fixnum start end))155 (with-slots (exponents)156 m157 (reduce #'+ exponents :start start :end end))) 158 151 (defgeneric monom-total-degree (m &optional (start 0) (end (monom-dimension m))) 152 (:documentation "Return the todal degree of a monomoal M. Optinally, a range 153 of variables may be specified with arguments START and END.") 154 (:method ((m monom) &optional (start 0) (end (monom-dimension m))) 155 (declare (type fixnum start end)) 156 (with-slots (exponents) 157 m 158 (reduce #'+ exponents :start start :end end)))) 159 159 160 160 (defmethod monom-sugar (m &optional start end)
Note:
See TracChangeset
for help on using the changeset viewer.