We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9e1d882 + eca5218 commit d50e35aCopy full SHA for d50e35a
src/pdsparsemat.jl
@@ -51,7 +51,7 @@ end
51
52
### Algebra
53
54
-Base.inv(a::PDSparseMat{T}) where {T<:Real} = PDMat( a\eye(T,a.dim) )
+Base.inv(a::PDSparseMat{T}) where {T<:Real} = PDMat(inv(a.mat))
55
LinearAlgebra.logdet(a::PDSparseMat) = logdet(a.chol)
56
57
### whiten and unwhiten
0 commit comments