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