I have a breeze.linalg.DenseMatrix:
breeze.linalg.DenseMatrix[Int] =
1 5 9
2 6 10
3 7 11
4 8 12
and a breeze.linalg.DenseVector:
breeze.linalg.DenseVector[Int] = DenseVector(13, 14, 15)
Slicing allows me to get a particular row of a DenseMatrix but not replace/reassign it. How can I replace one of the rows(for eg. 2nd row) of the matrix with the vector to get something as shown below?
1 5 9
13 14 15
3 7 11
3 8 12
Also, is there a way to achieve such matrix manipulations using any of Spark's matrix types? If yes, that would be much more desirable.