Skip to content

Commit

Permalink
Merge pull request #119 from ElOceanografo/patch-1
Browse files Browse the repository at this point in the history
[Breaking] Make inverting a PDSparseMat throw an error
  • Loading branch information
andreasnoack committed Sep 19, 2020
2 parents 9e1d882 + eca5218 commit d50e35a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pdsparsemat.jl
Expand Up @@ -51,7 +51,7 @@ end

### Algebra

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))
LinearAlgebra.logdet(a::PDSparseMat) = logdet(a.chol)

### whiten and unwhiten
Expand Down

0 comments on commit d50e35a

Please sign in to comment.