5

The latest release of spark uses breeze for vectors.

There are no operations available for adding the vectors org.apache.spark.mllib.linalg.Vector

I need to convert them to arrays and add.But the efficiency is lost.

In the source code of spark the vectors are converted to breeze vector (breeze.linalg.Vector) by toBreeze function and then added.

But toBreeze is a private function and cant be used. So what is the best method to add vectors? Please help ..

chanda
  • 53
  • 1
  • 9
  • I've run into a similar issue with dot products. Wondering if these features are intentionally omitted or just not implemented yet. – Karl Higley May 21 '15 at 15:39
  • yeah, I found that using python we can use those vector operations but in scala there is no such operation. Just don't understand why. – hidemyname Sep 08 '15 at 12:58

0 Answers0