Changeset 2100
- Timestamp:
- 2015-06-17T20:03:05-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/ring.lisp
r2099 r2100 49 49 (in-package :ring) 50 50 51 (defgeneric ring-unit-for (object)51 (defgeneric unit-for (object) 52 52 (:method ((self number)) 1)) 53 53 54 (defgeneric ring-zerop (object)55 (:method ((self number)) ( zerop self)))54 (defgeneric zerop (object) 55 (:method ((self number)) (cl:zerop self))) 56 56 57 (defgeneric ring-add (x y)57 (defgeneric add (x y) 58 58 (:method ((x number) (y number)) (+ x y))) 59 59 60 (defgeneric ring-mul (x y)60 (defgeneric mul (x y) 61 61 (:method ((x number) (y number)) (* x y))) 62 62 63 (defgeneric ring-tensor-mul (x y))63 (defgeneric tensor-mul (x y)) 64 64 65 (defgeneric ring-div (x y)65 (defgeneric div (x y) 66 66 (:method ((x number) (y number)) (/ x y))) 67 67 68 (defgeneric ring-lcm (x y)69 (:method ((x integer) (y integer)) ( lcm x y)))68 (defgeneric lcm (x y) 69 (:method ((x integer) (y integer)) (cl:lcm x y))) 70 70 71 (defgeneric ring-ezgcd (x y)71 (defgeneric ezgcd (x y) 72 72 (:method ((x integer) (y integer) 73 73 &aux (c (gcd x y))) 74 74 (values c (/ x c) (/ y c)))) 75 75 76 (defgeneric ring-gcd (x y)76 (defgeneric gcd (x y) 77 77 (:method ((x integer) (y integer)) 78 ( gcd x y)))78 (cl:gcd x y))) 79 79 80 80 (defgeneric dimension (object))
Note:
See TracChangeset
for help on using the changeset viewer.