Yes, the local matrix is broadcast to each worker. Here is the code: https://github.com/apache/spark/blob/master/mllib/src/main/scala/org/apache/spark/mllib/linalg/distributed/RowMatrix.scala#L407
In 1.3 we will have Block matrix multiplication too, which will allow distributed matrix multiplication. This is thanks to Burak Yavuz from Stanford and now at Databricks. On Wed, Feb 11, 2015 at 4:12 AM, Donbeo <lucapug...@gmail.com> wrote: > In Spark it is possible to multiply a distribuited matrix x and a local > matrix w > > val x = new RowMatrix(distribuited_data) > val w: Matrix = Matrices.dense(local_data) > val result = x.multiply(w) . > > What is the process behind this command? Is the matrix w replicated on > each > worker? Is there a reference that I can use for this? > > Thanks a lot! > > > > -- > View this message in context: > http://apache-spark-user-list.1001560.n3.nabble.com/what-is-behind-matrix-multiplications-tp21599.html > Sent from the Apache Spark User List mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@spark.apache.org > For additional commands, e-mail: user-h...@spark.apache.org > >