I'm trying to compute the eigendecomposition of a matrix in a portion of my code, using mllib.linalg.EigenValueDecomposition (https://github.com/apache/spark/blob/master/mllib/src/main/scala/org/apache/spark/mllib/linalg/EigenValueDecomposition.scala ) as follows:
val tol = 1e-10 val maxIter = 300 var testmat = DenseMatrix.ones(50,50).toBreeze.asInstanceOf[BDM[Double]] testmat *= testmat.t def covOperator(v : BDV[Double]) :BDV[Double] = { testmat*v } val (lambda2, u2) = EigenValueDecomposition.symmetricEigs(covOperator, 50, rank, tol, maxIter) The code compiles, but fails when I spark-submit the jar, with a java.lang.NoClassDefFoundError: breeze/linalg/DenseMatrix error at the line where I call EigenValueDecomposition Any ideas what the issue might be? I use breeze.linalg.DenseMatrix as BDM elsewhere in the code and had no runtime issues until I inserted the call to EigenValueDecomposition. -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/breeze-linalg-DenseMatrix-not-found-tp23537.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