From 0ccbb58d4126907ec0d08c4ce74526bf00e4d312 Mon Sep 17 00:00:00 2001 From: Andy Zhang <37402126+AnzhiZhang@users.noreply.github.com> Date: Sun, 11 Aug 2024 13:56:07 +0100 Subject: [PATCH] fix(matrices): fix issymmetric on kms --- src/matrices/kms.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrices/kms.jl b/src/matrices/kms.jl index 360882b..889b460 100644 --- a/src/matrices/kms.jl +++ b/src/matrices/kms.jl @@ -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}