From e5536f3c131a05acedd2fa3e2094de70c1b2a142 Mon Sep 17 00:00:00 2001 From: droodman Date: Tue, 15 Feb 2022 17:07:59 -0500 Subject: [PATCH] small fix in invsymsingcheck() --- src/utilities.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utilities.jl b/src/utilities.jl index 07b5beb..5f47815 100644 --- a/src/utilities.jl +++ b/src/utilities.jl @@ -9,7 +9,7 @@ function invsym(X) # inverse of symmetric matrix Symmetric(X) end function invsymsingcheck(X) # inverse of symmetric matrix, checking for singularity - iszero(nrows(X)) && (return Symmetric(X)) + iszero(nrows(X)) && (return (false, Symmetric(X))) X, ipiv, info = LinearAlgebra.LAPACK.sytrf!('U', Matrix(X)) singular = info>0 !singular && LinearAlgebra.LAPACK.sytri!('U', X, ipiv)