Skip to content

Instantly share code, notes, and snippets.

@w01fe
Created July 10, 2013 06:52
Show Gist options
  • Save w01fe/5963993 to your computer and use it in GitHub Desktop.
Save w01fe/5963993 to your computer and use it in GitHub Desktop.
hiphip_dot_product.clj
;; 8.5 us for 10k doubles: 2.3 GFlops
(require '[hiphip.double :as dbl])
(defn dot-product [ws xs]
(dbl/asum [x xs w ws] (* x w)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment