I think it really doesn't get any clearer than this in terms of intent. While I was adept at calculus-level math 20 years ago, I've forgotten the little I knew of matrices. This is the first algorithm that has communicated by visual inspection (to me) exactly what a convolution is.
-Fred -- Science answers questions; philosophy questions answers. On Jul 17, 2010, at 3:43 PM, Isaac Hodes wrote: > double convolve(double *xs, double *is, double *ys){ > int i,j; > for(i=0; i<len(xs); i++){ > for(j=0; j<len(is); j++){ > ys[i+j] = ys[i+j] + (xs[i]*is[j]); > } > } > return ys; > } -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en