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 3020 for branches


Ignore:
Timestamp:
2015-06-21T16:22:06-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/monom.lisp

    r3018 r3020  
    253253    (plusp (elt exponents k))))
    254254
    255 (defmethod r-tensor-product ((m1 monom) (m2 monom))
    256   (with-slots ((exponents1 exponents) (dimension1 dimension))
    257       m1
     255(defmethod left-tensor-product-by ((self monom) (other monom))
     256  (with-slots ((exponents1 exponents) (dimension1 dimension))
     257      self
    258258    (with-slots ((exponents2 exponents) (dimension2 dimension))
    259         m2
    260       (make-instance 'monom
    261                      :dimension (+ dimension1 dimension2)
    262                      :exponents (concatenate 'vector exponents1 exponents2)))))
     259        other
     260      (setf dimension1 (+ dimension1 dimension2)
     261            exponents1 (concatenate 'vector exponents2 exponents1)))))
     262
     263(defmethod right-tensor-product-by ((self monom) (other monom))
     264  (with-slots ((exponents1 exponents) (dimension1 dimension))
     265      self
     266    (with-slots ((exponents2 exponents) (dimension2 dimension))
     267        other
     268      (setf dimension1 (+ dimension1 dimension2)
     269            exponents1 (concatenate 'vector exponents1 exponents2)))))
    263270
    264271(defmethod r-contract ((m monom) k)
Note: See TracChangeset for help on using the changeset viewer.