Repository: spark
Updated Branches:
  refs/heads/master d8c4b00a2 -> ebd9ce0f1


[MLLIB] Fix CholeskyDecomposition assertion's message

Change assertion's message so it's consistent with the code. The old message 
says that the invoked method was lapack.dports, where in fact it was 
lapack.dppsv method.

Author: Wojciech Jurczyk <wojtek.jurc...@gmail.com>

Closes #10818 from wjur/wjur/rename_error_message.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/ebd9ce0f
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/ebd9ce0f
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/ebd9ce0f

Branch: refs/heads/master
Commit: ebd9ce0f1f55f7d2d3bd3b92c4b0a495c51ac6fd
Parents: d8c4b00
Author: Wojciech Jurczyk <wojtek.jurc...@gmail.com>
Authored: Tue Jan 19 09:36:45 2016 +0000
Committer: Sean Owen <so...@cloudera.com>
Committed: Tue Jan 19 09:36:45 2016 +0000

----------------------------------------------------------------------
 .../org/apache/spark/mllib/linalg/CholeskyDecomposition.scala      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/ebd9ce0f/mllib/src/main/scala/org/apache/spark/mllib/linalg/CholeskyDecomposition.scala
----------------------------------------------------------------------
diff --git 
a/mllib/src/main/scala/org/apache/spark/mllib/linalg/CholeskyDecomposition.scala
 
b/mllib/src/main/scala/org/apache/spark/mllib/linalg/CholeskyDecomposition.scala
index 0cd371e..ffdcdde 100644
--- 
a/mllib/src/main/scala/org/apache/spark/mllib/linalg/CholeskyDecomposition.scala
+++ 
b/mllib/src/main/scala/org/apache/spark/mllib/linalg/CholeskyDecomposition.scala
@@ -37,7 +37,7 @@ private[spark] object CholeskyDecomposition {
     val info = new intW(0)
     lapack.dppsv("U", k, 1, A, bx, k, info)
     val code = info.`val`
-    assert(code == 0, s"lapack.dpotrs returned $code.")
+    assert(code == 0, s"lapack.dppsv returned $code.")
     bx
   }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to