Skip to content

Commit dcc502e

Browse files
committed
update breeze to 0.9
1 parent 9a54de1 commit dcc502e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

mllib/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
<dependency>
5858
<groupId>org.scalanlp</groupId>
5959
<artifactId>breeze_${scala.binary.version}</artifactId>
60-
<version>0.7</version>
60+
<version>0.9</version>
6161
<exclusions>
6262
<!-- This is included as a compile-scoped dependency by jtransforms, which is
6363
a dependency of breeze. -->

mllib/src/main/scala/org/apache/spark/mllib/linalg/distributed/RowMatrix.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ class RowMatrix(
222222
EigenValueDecomposition.symmetricEigs(v => G * v, n, k, tol, maxIter)
223223
case SVDMode.LocalLAPACK =>
224224
val G = computeGramianMatrix().toBreeze.asInstanceOf[BDM[Double]]
225-
val (uFull: BDM[Double], sigmaSquaresFull: BDV[Double], _) = brzSvd(G)
225+
val brzSvd.SVD(uFull: BDM[Double], sigmaSquaresFull: BDV[Double], _) = brzSvd(G)
226226
(sigmaSquaresFull, uFull)
227227
case SVDMode.DistARPACK =>
228228
require(k < n, s"k must be smaller than n in dist-eigs mode but got k=$k and n=$n.")
@@ -338,7 +338,7 @@ class RowMatrix(
338338

339339
val Cov = computeCovariance().toBreeze.asInstanceOf[BDM[Double]]
340340

341-
val (u: BDM[Double], _, _) = brzSvd(Cov)
341+
val brzSvd.SVD(u: BDM[Double], _, _) = brzSvd(Cov)
342342

343343
if (k == n) {
344344
Matrices.dense(n, k, u.data)

mllib/src/test/scala/org/apache/spark/mllib/linalg/distributed/RowMatrixSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class RowMatrixSuite extends FunSuite with LocalSparkContext {
9999
for (mat <- Seq(denseMat, sparseMat)) {
100100
for (mode <- Seq("auto", "local-svd", "local-eigs", "dist-eigs")) {
101101
val localMat = mat.toBreeze()
102-
val (localU, localSigma, localVt) = brzSvd(localMat)
102+
val brzSvd.SVD(localU, localSigma, localVt) = brzSvd(localMat)
103103
val localV: BDM[Double] = localVt.t.toDenseMatrix
104104
for (k <- 1 to n) {
105105
val skip = (mode == "local-eigs" || mode == "dist-eigs") && k == n

0 commit comments

Comments
 (0)