Update -- I wrapped the JBLAS library and ended up with stellar
performance, about 3x faster than numpy.

https://gist.github.com/264a2756fc657140fdb8

On Tue, Jan 17, 2012 at 10:37 AM, Sam Ritchie <sritchi...@gmail.com> wrote:

> Hey all,
>
> I'm running into some large performance differences with matrix
> multiplication between Python's Numpy and Clojure -- so big that I'm almost
> certainly doing something very wrong. Numpy seems to be able to multiply
> a 1,000,000x23 matrix by its transpose in under a second, while the
> equivalent clojure code takes over six minutes. Here's my stack overflow
> post with the details:
>
>
> http://stackoverflow.com/questions/8899773/matrix-multiplication-in-clojure-vs-numpy
>
> And a gist with the code:
>
> https://gist.github.com/1627900
>
> I've tried Incanter, but it seems to be even slower than this naive
> multiplication. Do you guys have any advice on how to do this in a
> performant way?
>
> Thanks,
> --
> Sam Ritchie, Twitter Inc
> 703.662.1337
> @sritchie09
>
> (Too brief? Here's why! http://emailcharter.org)
>
>


-- 
Sam Ritchie, Twitter Inc
703.662.1337
@sritchie09

(Too brief? Here's why! http://emailcharter.org)

-- 
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

Reply via email to