Created
July 10, 2013 06:52
-
-
Save w01fe/5963993 to your computer and use it in GitHub Desktop.
hiphip_dot_product.clj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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