Github user srowen commented on a diff in the pull request:
    --- Diff: 
    @@ -52,8 +51,20 @@ private[spark] object CholeskyDecomposition {
       def inverse(UAi: Array[Double], k: Int): Array[Double] = {
         val info = new intW(0)
         lapack.dpptri("U", k, UAi, info)
    -    val code = info.`val`
    -    assert(code == 0, s"lapack.dpptri returned $code.")
    +    checkReturnValue(info, "dpptri")
    +  private def checkReturnValue(info: intW, method: String): Unit = {
    --- End diff --
    CC @yanboliang -- tried to add more to the error messages here, and 
distinguish between unsupported input (illegal argument) and bad call to LAPACK 
(illegal state? an assertion error seemed like too much)

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to