- Timestamp:
- 2016-06-13T10:13:06-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/polynomial.lisp
r4455 r4456 28 28 "POLY-TERM-ORDER" 29 29 "POLY-INSERT-TERM" 30 "POLY-REMOVE-TERM" 30 31 "SCALAR-MULTIPLY-BY" 31 32 "SCALAR-DIVIDE-BY" … … 124 125 self)) 125 126 127 (defgeneric poly-remove-term (object) 128 (:documentation "Remove leading term of polynomial OBJECT. Returns the removed term.") 129 (:method ((object poly)) 130 (pop (poly-termlist object)))) 131 126 132 (defgeneric poly-append-term (self term) 127 133 (:documentation "Append a term TERM to SELF after all other terms. Order is not enforced.") … … 160 166 161 167 168 #+nil 169 (defmethod shared-initialize :after ((self poly) slot-names 170 &rest initargs 171 &key) 172 "If TERMLIST is supplied and non-empty, and DIMENSION is NIL, set 173 the dimension to the dimension of the first term in TERMLIST." 174 (declare (ignore initargs)) 175 (let ((dims (mapcar #'monom-dimension (slot-value self 'termlist)))) 176 (format t "Dimensions: ~A~%" dims) 177 (assert (apply #'= dims)) 178 (unless (endp dims) 179 (setf (slot-value self 'dimension) (car dims)))) 180 self) 162 181 163 182 (defmethod update-instance-for-different-class :after ((old term) (new poly) &key)
Note:
See TracChangeset
for help on using the changeset viewer.