Re: RowMatrix multiplication

2015-01-15 Thread Toni Verbeiren
lowing two computations A*b and A^T*c I don't think this is possible without being able to transpose a rowmatrix.  Am I correct? Thanks, Alex From: Reza Zadeh Sent: Monday, January 12, 2015 1:58 PM To: Alex Minnaar Cc: u...@spark.incubator.apache.org Subject: Re: RowMatrix multipli

Re: RowMatrix multiplication

2015-01-12 Thread Alex Minnaar
t: Re: RowMatrix multiplication Yes you are correct, to do it with existing operations you would need a transpose on rowmatrix. However, you can fairly easily perform the operation manually by doing a join (if the c vector is an RDD) or broadcasting c (if the c vector is small enough to fit in m

Re: RowMatrix multiplication

2015-01-12 Thread Reza Zadeh
om:* Reza Zadeh > *Sent:* Monday, January 12, 2015 1:58 PM > *To:* Alex Minnaar > *Cc:* u...@spark.incubator.apache.org > *Subject:* Re: RowMatrix multiplication > > As you mentioned, you can perform A * b, where A is a rowmatrix and b is > a local matrix. > > From your email, I figure

Re: RowMatrix multiplication

2015-01-12 Thread Alex Minnaar
e without being able to transpose a rowmatrix. Am I correct? Thanks, Alex From: Reza Zadeh Sent: Monday, January 12, 2015 1:58 PM To: Alex Minnaar Cc: u...@spark.incubator.apache.org Subject: Re: RowMatrix multiplication As you mentioned, you can perform A

Re: RowMatrix multiplication

2015-01-12 Thread Reza Zadeh
As you mentioned, you can perform A * b, where A is a rowmatrix and b is a local matrix. >From your email, I figure you want to compute b * A^T. To do this, you can compute C = A b^T, whose result is the transpose of what you were looking for, i.e. C^T = b * A^T. To undo the transpose, you would h

RowMatrix multiplication

2015-01-12 Thread Alex Minnaar
I have a rowMatrix on which I want to perform two multiplications. The first is a right multiplication with a local matrix which is fine. But after that I also wish to right multiply the transpose of my rowMatrix with a different local matrix. I understand that there is no functionality to tr