Sparse Matrix to Matrix multiplication in Spark

2018-04-01 Thread Shahab Yunus
Hi there. Right now Spark MLLib doesn't provide Sparse Matrix to Matrix multiplication. The only thing that I saw is a BlockMatrix being multiplied with a DenseMatrix. Is there any plan (or work going on) in near future to provide Sparse Matrix to Matrix multiplication functionality? Thanks. Rega

Re: Matrix multiplication in spark

2014-11-05 Thread Shivaram Venkataraman
large >> > sparse matrix x sparse matrix multiplication. what is the best way to >> > implement this in spark? >> > >> > >> > >> > -- >> > View this message in context: >> http://apache-spark-user-lis

Re: Matrix multiplication in spark

2014-11-05 Thread Duy Huynh
ark? > > > > > > > > -- > > View this message in context: > http://apache-spark-user-list.1001560.n3.nabble.com/Matrix-multiplication-in-spark-tp12562p18164.html > > Sent from the Apache Spark User List mailing list archive at Nabble.com. > > > > ---

Re: Matrix multiplication in spark

2014-11-05 Thread Xiangrui Meng
for distributed operations, especially very large > sparse matrix x sparse matrix multiplication. what is the best way to > implement this in spark? > > > > -- > View this message in context: > http://apache-spark-user-list.1001560.n3.nabble.com/Matrix-multiplication-in-spark-tp1

Re: Matrix multiplication in spark

2014-11-05 Thread ll
@sowen.. i am looking for distributed operations, especially very large sparse matrix x sparse matrix multiplication. what is the best way to implement this in spark? -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Matrix-multiplication-in-spark

Re: Matrix multiplication in spark

2014-08-21 Thread Victor Tso-Guillen
Scala defines transpose. On Thu, Aug 21, 2014 at 4:22 PM, x wrote: > Yes. > Now Spark API doesn't provide transpose function. You have to define it > like below. > > def transpose(m: Array[Array[Double]]): Array[Array[Double]] = { > (for { > c <- m(0).indices > } yield m.map(_(c))

Re: Matrix multiplication in spark

2014-08-21 Thread x
Yes. Now Spark API doesn't provide transpose function. You have to define it like below. def transpose(m: Array[Array[Double]]): Array[Array[Double]] = { (for { c <- m(0).indices } yield m.map(_(c)) ).toArray } xj @ Tokyo On Thu, Aug 21, 2014 at 10:12 PM, phoenix bai wrote: > th

Re: Matrix multiplication in spark

2014-08-21 Thread x
You could create a distributed matrix with RowMatrix. val rmat = new RowMatrix(rows) And then make a local DenseMatrix. val localMat = Matrices.dense(m, n, mat) Then multiply them. rmat.multiply(localMat) xj @ Tokyo On Thu, Aug 21, 2014 at 6:37 PM, Sean Owen wrote: > Are you trying to mul

Re: Matrix multiplication in spark

2014-08-21 Thread Sean Owen
Are you trying to multiply dense or sparse matrices? if sparse, are they very large -- meaning, are you looking for distributed operations? On Thu, Aug 21, 2014 at 10:07 AM, phoenix bai wrote: > there is RowMatrix implemented in spark. > and I check for a while but failed to find any matrix opera

Matrix multiplication in spark

2014-08-21 Thread phoenix bai
there is RowMatrix implemented in spark. and I check for a while but failed to find any matrix operations (like multiplication etc) are defined in the class yet. so, my question is, if I want to do matrix multiplication, (to do vector x matrix multiplication to be precise), need to convert the vec