Changeset 3309
- Timestamp:
- 2015-06-23T09:39:50-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/monom.lisp
r3308 r3309 101 101 102 102 ;; when all exponents are to be identical 103 ( ifexponent-supplied-p103 (when exponent-supplied-p 104 104 (when (slot-boundp self 'exponents) 105 (warn "Ignoring argument EXPONENT.")) 105 (warn "Ignoring argument EXPONENT.") 106 (return-from 'initialize-instance)) 106 107 (cond 107 108 ((slot-boundp self 'dimension) 108 (error "Slot DIMENSION is unbound, but must be known if EXPONENT is supplied."))109 (t110 109 (let ((dim (slot-value self 'dimension))) 111 110 (setf (slot-value self 'exponents) 112 111 (make-array (list dim) :initial-element (if exponent-supplied-p exponent 0) 113 :element-type 'exponent))))))) 112 :element-type 'exponent)))) 113 (t 114 (error "Slot DIMENSION is unbound, but must be known if EXPONENT is supplied."))))) 114 115 115 116 (defmethod r-equalp ((m1 monom) (m2 monom))
Note:
See TracChangeset
for help on using the changeset viewer.