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 1232


Ignore:
Timestamp:
2015-06-11T14:27:02-07:00 (10 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/utils.lisp

    r1231 r1232  
    7272
    7373(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.