BlockMatrix.multiply is the suggested method of multiplying two large
matrices. Is there a reason that you didn't use BlockMatrices?
You can load the matrices and convert to and from RowMatrix. If it's in
sparse format (i, j, v), then you can also use the CoordinateMatrix to
load, BlockMatrix to m
I want to multiply two large matrices (from csv files)using Spark and Scala
and save output.I use the following code
val rows=file1.coalesce(1,false).map(x=>{
val line=x.split(delimiter).map(_.toDouble)
Vectors.sparse(line.length,
line.zipWithIndex.map(e => (e._2, e._1)).filt