Skip to content

Commit ebd9ce0

Browse files
wjursrowen
authored andcommitted
[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 <[email protected]> Closes #10818 from wjur/wjur/rename_error_message.
1 parent d8c4b00 commit ebd9ce0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mllib/src/main/scala/org/apache/spark/mllib/linalg/CholeskyDecomposition.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ private[spark] object CholeskyDecomposition {
3737
val info = new intW(0)
3838
lapack.dppsv("U", k, 1, A, bx, k, info)
3939
val code = info.`val`
40-
assert(code == 0, s"lapack.dpotrs returned $code.")
40+
assert(code == 0, s"lapack.dppsv returned $code.")
4141
bx
4242
}
4343

0 commit comments

Comments
 (0)