Skip to content

Commit

Permalink
fix(matrices): fix issymmetric on kms
Browse files Browse the repository at this point in the history
  • Loading branch information
AnzhiZhang committed Aug 11, 2024
1 parent 290965d commit 0ccbb58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/matrices/kms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ KMS{T}(n::Integer, rho::Number) where {T<:Number} = KMS{T}(n, convert(T, rho))
size(A::KMS) = (A.n, A.n)
LinearAlgebra.ishermitian(::KMS) = true
LinearAlgebra.isposdef(A::KMS) = A.n <= 1 || 0 < abs(A.rho) < 1 ? true : false
LinearAlgebra.issymmetric(A::KMS) = A.n <= 1 && typeof(A.rho) <: Real ? true : false
LinearAlgebra.issymmetric(A::KMS) = typeof(A.rho) <: Real ? true : false

# functions
@inline Base.@propagate_inbounds function getindex(A::KMS{T}, i::Integer, j::Integer) where {T}
Expand Down

0 comments on commit 0ccbb58

Please sign in to comment.