Skip to content
Snippets Groups Projects
Commit ebd9ce0f authored by Wojciech Jurczyk's avatar Wojciech Jurczyk Committed by Sean Owen
Browse files

[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.jurczyk@gmail.com>

Closes #10818 from wjur/wjur/rename_error_message.
parent d8c4b00a
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,7 @@ private[spark] object CholeskyDecomposition { ...@@ -37,7 +37,7 @@ private[spark] object CholeskyDecomposition {
val info = new intW(0) val info = new intW(0)
lapack.dppsv("U", k, 1, A, bx, k, info) lapack.dppsv("U", k, 1, A, bx, k, info)
val code = info.`val` val code = info.`val`
assert(code == 0, s"lapack.dpotrs returned $code.") assert(code == 0, s"lapack.dppsv returned $code.")
bx bx
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment