Skip to content

Commit d50e35a

Browse files
authored
Merge pull request #119 from ElOceanografo/patch-1
[Breaking] Make inverting a PDSparseMat throw an error
2 parents 9e1d882 + eca5218 commit d50e35a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pdsparsemat.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ end
5151

5252
### Algebra
5353

54-
Base.inv(a::PDSparseMat{T}) where {T<:Real} = PDMat( a\eye(T,a.dim) )
54+
Base.inv(a::PDSparseMat{T}) where {T<:Real} = PDMat(inv(a.mat))
5555
LinearAlgebra.logdet(a::PDSparseMat) = logdet(a.chol)
5656

5757
### whiten and unwhiten

0 commit comments

Comments
 (0)