close Warning: Can't synchronize with repository "(default)" (The repository directory has changed, you should resynchronize the repository with: trac-admin $ENV repository resync '(default)'). Look in the Trac log for more information.

Changeset 4503 for branches


Ignore:
Timestamp:
2016-06-17T10:45:42-07:00 (8 years ago)
Author:
Marek Rychlik
Message:

Summary: Removed generic function SUGAR from this package

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/monom.lisp

    r4496 r4503  
    3030           "MONOM-ELT"
    3131           "TOTAL-DEGREE"
    32            "SUGAR"
    3332           "MULTIPLY-BY"
    3433           "DIVIDE-BY"
     
    172171      (reduce #'+ exponents :start start :end end))))
    173172
    174 (defgeneric sugar (m &optional start end)
    175   (:documentation "Return the sugar of a monomial M. Optinally, a range
    176 of variables may be specified with arguments START and END.")
    177   (:method ((m monom)  &optional (start 0) (end (monom-dimension m)))
    178     (declare (type fixnum start end))
    179     (total-degree m start end)))
    180 
    181173(defmethod multiply-by ((self monom) (other monom))
    182174  (with-slots ((exponents1 exponents))
Note: See TracChangeset for help on using the changeset viewer.