Changeset 790 for branches/f4grobner
- Timestamp:
- 2015-06-08T22:39:44-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/term.lisp
r789 r790 36 36 (:include monom) 37 37 ;; BOA constructor. TODO: avoid code duplication with MONOM? 38 (:constructor make-term (dimension 39 &key 40 (monom nil monom-supplied-p) 41 (initial-exponents #() initial-exponents-supplied-p) 42 (initial-exponent #() initial-exponent-supplied-p) 43 (exponents (cond 44 (monom-supplied-p (monom-exponents monom)) 45 ;; when exponents are supplied 46 (initial-exponents-supplied-p 47 (make-array (list dimension) :initial-contents initial-exponents 48 :element-type 'exponent)) 49 ;; when all exponents are to be identical 50 (initial-exponent-supplied-p 51 (make-array (list dimension) :initial-element initial-exponent 52 :element-type 'exponent)) 53 ;; otherwise, all exponents are zero 54 (t (make-array (list dimension) :element-type 'exponent :initial-element 0)))) 55 (ring *ring-of-integers*) 56 (coeff (funcall (ring-unit ring))))) 38 (:constructor make-term (monom &key 39 (ring *ring-of-integers*) 40 (coeff (funcall (ring-unit ring))) 41 (exponents (monom-exponents monom))) 57 42 ;;(:constructor make-term-variable) 58 43 ;;(:type list)
Note:
See TracChangeset
for help on using the changeset viewer.