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 726


Ignore:
Timestamp:
2015-06-08T20:28:24-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/monomial.lisp

    r725 r726  
    7373(defstruct (monom
    7474             ;; BOA constructor
    75              (:constructor make-monom (&optional dim (exponents (make-array (list dim) :element-type 'exponent)))))
     75             (:constructor make-monom ( dim
     76                                        &key
     77                                        (initial-contents #() initial-contents-supplied-p)
     78                                        (initial-element  #() initial-element-supplied-p)
     79                                        (exponents (cond
     80                                                     (initial-contents-supplied-p
     81                                                      (make-array (list dim) :initial-contents initial-contents
     82                                                                  :element-type 'exponent))
     83                                                     (initial-element-supplied-p
     84                                                      (make-array (list dim) :initial-element initial-element
     85                                                                  :element-type 'exponent))
     86                                                     (t (make-array (list dim) :element-type 'exponent :initial-element 0)))))))
    7687  (dim 0 :type fixnum)
    77   (exponents #() :type (vector exponent *)))
     88  (exponents nil :type (vector exponent *)))
    7889
    7990 
Note: See TracChangeset for help on using the changeset viewer.