Changeset 4463 for branches/f4grobner/symbolic-polynomial.lisp
- Timestamp:
- 2016-06-14T19:35:34-07:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/symbolic-polynomial.lisp
r4442 r4463 38 38 (defmethod print-object ((self symbolic-poly) stream) 39 39 (print-unreadable-object (self stream :type t :identity t) 40 (with-accessors ((dimension poly-dimension) 41 (termlist poly-termlist) 40 (with-accessors ((termlist poly-termlist) 42 41 (order poly-term-order) 43 42 (vars symbolic-poly-vars)) 44 43 self 45 (format stream " DIMENSION=~ATERMLIST=~A ORDER=~A VARS=~A"46 dimensiontermlist order vars))))44 (format stream "TERMLIST=~A ORDER=~A VARS=~A" 45 termlist order vars)))) 47 46 48 47 … … 59 58 (defmethod universal-equalp ((self symbol) (other symbol)) 60 59 (eq self other)) 61 62 (defmethod update-instance-for-different-class :after ((old poly) (new symbolic-poly) &key)63 "After adding variables to NEW, we need to make sure that the number64 of variables given by POLY-DIMENSION is consistent with VARS."65 (assert (= (length (symbolic-poly-vars new)) (poly-dimension new))))66 67 60 68 61 #| … … 168 161 (format nil "[~{~a~^, ~}]" (mapcar #'(lambda (p) (poly->string p)) (cdr self)))))) 169 162 (:method ((self poly) &optional (vars nil)) 170 ;; Ensure that the number of variables matches the dimension171 (assert (= (length vars) (poly-dimension self)))172 163 (infix-print-to-string (->sexp self vars))) 173 164 (:method ((self symbolic-poly) &optional (vars (symbolic-poly-vars self)))
Note:
See TracChangeset
for help on using the changeset viewer.