Changeset 2210 for branches/f4grobner/monom.lisp
- Timestamp:
- 2015-06-18T09:42:07-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/monom.lisp
r2209 r2210 74 74 to 0. Alternatively, all elements may be specified as a list 75 75 EXPONENTS." 76 (setf (slot-value self 'dimension) (cond (dimension-suppied-p dimension) 77 (exponents-supplied-p (length exponents)) 78 (t (error "You must provide DIMENSION or EXPONENTS"))) 76 (setf (slot-value self 'dimension) (cond (dimension-suppied-p 77 dimension) 78 (exponents-supplied-p 79 (length exponents)) 80 (t 81 (error "You must provide DIMENSION or EXPONENTS"))) 79 82 (slot-value self 'exponents) (cond 80 83 ;; when exponents are supplied 81 84 (exponents-supplied-p 82 (when (and dimension-suppied-p (/= dimension (length exponents))) 85 (when (and dimension-suppied-p 86 (/= dimension (length exponents))) 83 87 (error "EXPONENTS must have length DIMENSION")) 84 88 (make-array (list dimension) :initial-contents exponents
Note:
See TracChangeset
for help on using the changeset viewer.