close Warning: Can't synchronize with repository "(default)" (The repository directory has changed, you should resynchronize the repository with: trac-admin $ENV repository resync '(default)'). Look in the Trac log for more information.

Changeset 790


Ignore:
Timestamp:
2015-06-08T22:39:44-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/term.lisp

    r789 r790  
    3636             (:include monom)
    3737             ;; 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)))
    5742             ;;(:constructor make-term-variable)
    5843             ;;(:type list)
Note: See TracChangeset for help on using the changeset viewer.