spark git commit: [MLLIB] Fix CholeskyDecomposition assertion's message

2016-01-19 Thread srowen
Repository: spark
Updated Branches:
  refs/heads/branch-1.6 30f55e523 -> 962e618ec


[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 

Closes #10818 from wjur/wjur/rename_error_message.

(cherry picked from commit ebd9ce0f1f55f7d2d3bd3b92c4b0a495c51ac6fd)
Signed-off-by: Sean Owen 


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

Branch: refs/heads/branch-1.6
Commit: 962e618ec159f8cd26543f42b2ce484fd5a5d8c5
Parents: 30f55e5
Author: Wojciech Jurczyk 
Authored: Tue Jan 19 09:36:45 2016 +
Committer: Sean Owen 
Committed: Tue Jan 19 09:36:55 2016 +

--
 .../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/962e618e/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



spark git commit: [MLLIB] Fix CholeskyDecomposition assertion's message

2016-01-19 Thread srowen
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 

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 
Authored: Tue Jan 19 09:36:45 2016 +
Committer: Sean Owen 
Committed: Tue Jan 19 09:36:45 2016 +

--
 .../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