I\'d really like to convert my org.apache.spark.mllib.linalg.Matrix to org.apache.spark.mllib.linalg.distributed.RowMatrix
I can do it as such:
val
small correction in above code: we need to use Vectors.dense instead of new DenseVector
new DenseVector
val vectors = rows.map(row => Vectors.dense(row.toArray))