File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -442,7 +442,7 @@ issymmetric(A::Hermitian{<:Complex}) = isreal(A)
442442issymmetric (A:: Symmetric ) = true
443443
444444# check if the symmetry is known from the type
445- _issymmetric (:: Union{Symmetric , Hermitian{<:Real}} ) = true
445+ _issymmetric (:: Union{SymSymTri , Hermitian{<:Real}} ) = true
446446_issymmetric (:: Any ) = false
447447
448448adjoint (A:: Hermitian ) = A
Original file line number Diff line number Diff line change @@ -1174,6 +1174,10 @@ end
11741174
11751175@testset " SymTridiagonal from Symmetric" begin
11761176 S = Symmetric (reshape (1 : 9 , 3 , 3 ))
1177+ @testset " helper functions" begin
1178+ @test LinearAlgebra. _issymmetric (S)
1179+ @test ! LinearAlgebra. _issymmetric (Array (S))
1180+ end
11771181 ST = SymTridiagonal (S)
11781182 @test ST == SymTridiagonal (diag (S), diag (S,1 ))
11791183end
You can’t perform that action at this time.
0 commit comments