diff options
author | Brandon Amos <bdamos@vt.edu> | 2016-11-01 01:48:29 +0300 |
---|---|---|
committer | soumith <soumith@fb.com> | 2016-11-14 02:17:05 +0300 |
commit | a7d9af35d034a9cc6c1ff4e58e4154a1cfe8464a (patch) | |
tree | fcb28e34d3d030288b546b7ecc3359f47327f353 | |
parent | 78de5cd4032bc2cb4d6197e891ebc3ad1a116a0e (diff) |
[PATCH] Improve potrf error message. (#189)
-rw-r--r-- | lib/TH/generic/THTensorLapack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/TH/generic/THTensorLapack.c b/lib/TH/generic/THTensorLapack.c index 7929939..fb1e246 100644 --- a/lib/TH/generic/THTensorLapack.c +++ b/lib/TH/generic/THTensorLapack.c @@ -603,9 +603,9 @@ void THTensor_(potrf)(THTensor *ra_, THTensor *a, const char *uplo) /* Run Factorization */ THLapack_(potrf)(uplo[0], n, THTensor_(data)(ra__), lda, &info); - THLapackCheckWithCleanup("Lapack Error %s : A(%d,%d) is 0, A cannot be factorized", + THLapackCheckWithCleanup("Lapack Error in %s : the leading minor of order %d is not positive definite", THCleanup(THTensor_(free)(ra__);), - "potrf", info, info); + "potrf", info); THTensor_(clearUpLoTriangle)(ra__, uplo); THTensor_(freeCopyTo)(ra__, ra_); |