Skip to content

Commit dfe5b07

Browse files
authored
Add LinearAlgebra defaults
1 parent c411839 commit dfe5b07

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/generics.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ pdadd(a::Matrix{T}, b::AbstractPDMat{S}) where {T<:Real, S<:Real} = pdadd!(simil
2424
/(a::AbstractPDMat, c::T) where {T<:Real} = a * inv(c)
2525
Base.kron(A::AbstractPDMat, B::AbstractPDMat) = PDMat(kron(Matrix(A), Matrix(B)))
2626

27+
# LinearAlgebra
28+
LinearAlgebra.isposdef(::AbstractPDMat) = true
29+
LinearAlgebra.ishermitian(::AbstractPDMat) = true
2730

2831
## whiten and unwhiten
2932
whiten!(a::AbstractPDMat, x::StridedVecOrMat) = whiten!(x, a, x)

0 commit comments

Comments
 (0)