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 3323 for branches/f4grobner


Ignore:
Timestamp:
2015-06-23T10:16:12-07:00 (10 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/monom.lisp

    r3322 r3323  
    254254
    255255(defmethod left-tensor-product-by ((self monom) (other monom))
    256   (with-slots ((exponents1 exponents) (dimension1 dimension))
    257       self
    258     (with-slots ((exponents2 exponents) (dimension2 dimension))
     256  (with-slots ((exponents1 exponents))
     257      self
     258    (with-slots ((exponents2 exponents))
    259259        other
    260       (setf dimension1 (+ dimension1 dimension2)
    261             exponents1 (concatenate 'vector exponents2 exponents1))))
     260      (setf exponents1 (concatenate 'vector exponents2 exponents1))))
    262261  self)
    263262
    264263(defmethod right-tensor-product-by ((self monom) (other monom))
    265   (with-slots ((exponents1 exponents) (dimension1 dimension))
    266       self
    267     (with-slots ((exponents2 exponents) (dimension2 dimension))
     264  (with-slots ((exponents1 exponents))
     265      self
     266    (with-slots ((exponents2 exponents))
    268267        other
    269       (setf dimension1 (+ dimension1 dimension2)
    270             exponents1 (concatenate 'vector exponents1 exponents2))))
     268      (setf exponents1 (concatenate 'vector exponents1 exponents2))))
    271269  self)
    272270
     
    274272  "Drop the first K variables in monomial M."
    275273  (declare (fixnum k))
    276   (with-slots (dimension exponents)
    277       self
    278     (setf dimension (- dimension k)
    279           exponents (subseq exponents k)))
     274  (with-slots (exponents)
     275      self
     276    (setf exponents (subseq exponents k)))
    280277  self)
    281278
Note: See TracChangeset for help on using the changeset viewer.