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


Ignore:
Timestamp:
2015-06-17T21:30:29-07:00 (10 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/monom.lisp

    r2144 r2146  
    199199      (every #'>= exponents1 exponents2))))
    200200
    201 (defmethod rel-prime-p ((m1 monom) (m2 monom))
     201(defmethod r-rel-prime-p ((m1 monom) (m2 monom))
    202202  "Returns T if two monomials M1 and M2 are relatively prime (disjoint)."
    203203  (with-slots (exponents1 exponents)
     
    208208
    209209
    210 (defmethod equal-p ((m1 monom) (m2 monom))
     210(defmethod r-equal-p ((m1 monom) (m2 monom))
    211211  "Returns T if two monomials M1 and M2 are equal."
    212212  (with-slots (exponents1 exponents)
     
    216216      (every #'= exponents1 exponents2))))
    217217
    218 (defmethod lcm ((m1 monom) (m2 monom))
     218(defmethod r-lcm ((m1 monom) (m2 monom))
    219219  "Returns least common multiple of monomials M1 and M2."
    220220  (with-slots (exponents1 exponents)
     
    228228
    229229
    230 (defmethod gcd ((m1 monom) (m2 monom))
     230(defmethod r-gcd ((m1 monom) (m2 monom))
    231231  "Returns greatest common divisor of monomials M1 and M2."
    232232  (with-slots (exponents1 exponents)
     
    239239        (make-instance 'monom :dim dim :exponents exponents)))))
    240240
    241 (defmethod depends-p ((m monom) k)
     241(defmethod r-depends-p ((m monom) k)
    242242  "Return T if the monomial M depends on variable number K."
    243243  (declare (type fixnum k))
     
    246246    (plusp (cl:elt exponents k))))
    247247
    248 (defmethod ring-tensor-mul ((m1 monom) (m2 monom)
    249                             &aux (dim (cl:+ (dimension m1) (dimension m2))))
     248(defmethod r-tensor-product ((m1 monom) (m2 monom)
     249                             &aux (dim (cl:+ (dimension m1) (dimension m2))))
    250250  (declare (fixnum dim))
    251251  (with-slots (exponents1 exponents)
Note: See TracChangeset for help on using the changeset viewer.