Re: ANN: Sparse matrix support for Clojure with vectorz-clj 0.28.0

2015-01-10 Thread Mike Anderson
Thanks Matt! I've just release Vectorz 0.45.0 including your changes. A lot of sparse operations are much faster now! On Monday, 29 December 2014 21:56:30 UTC+8, Matt Revelle wrote: > > Yes, will do. > > On Dec 28, 2014, at 9:58 PM, Mike Anderson > wrote: > > Looks like you have some good chang

Re: ANN: Sparse matrix support for Clojure with vectorz-clj 0.28.0

2014-12-29 Thread Matt Revelle
Yes, will do. > On Dec 28, 2014, at 9:58 PM, Mike Anderson > wrote: > > Looks like you have some good changes in your Vectorz branch - any chance you > could tidy up and make a PR? > > I like the idea of specialised getSlices and getColumns in particular - these > should be much faster than

Re: ANN: Sparse matrix support for Clojure with vectorz-clj 0.28.0

2014-12-28 Thread Mike Anderson
Looks like you have some good changes in your Vectorz branch - any chance you could tidy up and make a PR? I like the idea of specialised getSlices and getColumns in particular - these should be much faster than getting the slices one-by-one if the data is very sparse. On Monday, 29 December 2

Re: ANN: Sparse matrix support for Clojure with vectorz-clj 0.28.0

2014-12-28 Thread Matt Revelle
> On Dec 28, 2014, at 7:28 PM, Mike Anderson > wrote: > > Interesting idea. The challenge is that I'm not sure how to add > representation specification in an implementation independent way. It's a > quirk of vectorz that it has both indexed and hashed storage, I probably > wouldn't expect a

Re: ANN: Sparse matrix support for Clojure with vectorz-clj 0.28.0

2014-12-28 Thread Mike Anderson
Interesting idea. The challenge is that I'm not sure how to add representation specification in an implementation independent way. It's a quirk of vectorz that it has both indexed and hashed storage, I probably wouldn't expect any other implementations to have that. Likewise row and column orie

Re: ANN: Sparse matrix support for Clojure with vectorz-clj 0.28.0

2014-12-28 Thread Matt Revelle
Glad to see the addition of new-sparse-array to core.matrix. It looks like it defaults to SparseRowMatrix for the Vectorz implementation? Should the API provide a way to specify which sparse matrix representation (e.g., row- vs column-based, indexed vs hashed) should be used? I'd suggest a 3-ari

Re: ANN: Sparse matrix support for Clojure with vectorz-clj 0.28.0

2014-12-28 Thread Mars0i
This is cool. Kind of makes me wish my sparse matrices were larger than 300x300. I'll experiment with it anyway. On Saturday, December 27, 2014 4:56:55 AM UTC-5, Mike Anderson wrote: > > Here is a little belated Christmas present for Clojure data aficionados: > > ;; setup > (use 'clojure.core.m

ANN: Sparse matrix support for Clojure with vectorz-clj 0.28.0

2014-12-27 Thread Mike Anderson
Here is a little belated Christmas present for Clojure data aficionados: ;; setup (use 'clojure.core.matrix) (set-current-implementation :vectorz) ;; create a big sparse matrix with a trillion elements (initially zero) (def A (new-sparse-array [100 100])) ;; we are hopefully smart enough