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 2212


Ignore:
Timestamp:
2015-06-18T09:54:06-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/monom.lisp

    r2211 r2212  
    7979                                            (length exponents))
    8080                                           (t
    81                                             (error "You must provide DIMENSION or EXPONENTS"))))
    82   (slot-value self 'exponents) (cond
    83                                  ;; when exponents are supplied
    84                                  (exponents-supplied-p
    85                                   (when (and dimension-suppied-p
    86                                              (/= dimension (length exponents)))
    87                                     (error "EXPONENTS must have length DIMENSION"))
    88                                   (make-array (list dimension) :initial-contents exponents
    89                                               :element-type 'exponent))
    90                                  ;; when all exponents are to be identical
    91                                  (exponent-supplied-p
    92                                   (make-array (list dimension) :initial-element exponent
    93                                               :element-type 'exponent))
    94                                  ;; otherwise, all exponents are zero
    95                                  (t
    96                                   (make-array (list dimension) :element-type 'exponent :initial-element 0)))))
     81                                            (error "You must provide DIMENSION or EXPONENTS")))
     82        (slot-value self 'exponents) (cond
     83                                       ;; when exponents are supplied
     84                                       (exponents-supplied-p
     85                                        (when (and dimension-suppied-p
     86                                                   (/= dimension (length exponents)))
     87                                          (error "EXPONENTS must have length DIMENSION"))
     88                                        (make-array (list dimension) :initial-contents exponents
     89                                                    :element-type 'exponent))
     90                                       ;; when all exponents are to be identical
     91                                       (exponent-supplied-p
     92                                        (make-array (list dimension) :initial-element exponent
     93                                                    :element-type 'exponent))
     94                                       ;; otherwise, all exponents are zero
     95                                       (t
     96                                        (make-array (list dimension) :element-type 'exponent :initial-element 0)))))
    9797
    9898;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Note: See TracChangeset for help on using the changeset viewer.