Skip to content

Commit

Permalink
[MLLIB] Fix CholeskyDecomposition assertion's message
Browse files Browse the repository at this point in the history
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 <[email protected]>

Closes #10818 from wjur/wjur/rename_error_message.

(cherry picked from commit ebd9ce0)
Signed-off-by: Sean Owen <[email protected]>
  • Loading branch information
wjur authored and srowen committed Jan 19, 2016
1 parent 30f55e5 commit 962e618
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 962e618

Please sign in to comment.