Changeset 1232
- Timestamp:
- 2015-06-11T14:27:02-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/utils.lisp
r1231 r1232 72 72 73 73 (defmacro inner-product (x y &optional (add '+) (mult '*)) 74 (let ((i (gensym))) 75 `(summation (,mult (elt ,x ,i) (elt ,y ,i)) (,i 0 (1- (length ,x)))))) 74 (let ((i (gensym)) 75 (xx (gensym)) 76 (yy (gensym))) 77 `(let ((,xx ,x) 78 (,yy ,y)) 79 (summation (,mult (elt ,xx ,i) (elt ,yy ,i)) (,i 0 (1- (length ,x))) ,add))))
Note:
See TracChangeset
for help on using the changeset viewer.