Re: A doubt about core.matrix

2016-02-17 Thread Sunil S Nandihalli
Thanks Mikera, for the detailed response. I tested the element-wise product on two sparse matrix.. it seems to run through the entire matrix ? Am I missing something. Regards, Sunil On Wed, Feb 17, 2016 at 7:47 AM, Mikera wrote: > Hi Sunil, > > You are correct that the naive code will eagerly p

Re: A doubt about core.matrix

2016-02-16 Thread Mikera
Hi Sunil, You are correct that the naive code will eagerly produce the full matrix UxV, which may be very large :-) I think your strategy of extracting rows and columns from U and V is the best one. Row and column extraction for dense matrices in vectorz-clj is very efficient since it just use

A doubt about core.matrix

2016-02-16 Thread Sunil S Nandihalli
Hi Everybody, I am newbie to core.matrix .. I have the following expression W -> a large spare matrix of size MxN U -> a dense matrix of size MxK V -> a dense matrix of size KxN and K << (M,N) (require [clojure.core.matrix :as m]) I want to compute (m/mul W (m/* U V)) m/mul c