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 @@ -1164,6 +1164,10 @@ end
11641164
11651165@testset " SymTridiagonal from Symmetric" begin
11661166 S = Symmetric (reshape (1 : 9 , 3 , 3 ))
1167+ @testset " helper functions" begin
1168+ @test LinearAlgebra. _issymmetric (S)
1169+ @test ! LinearAlgebra. _issymmetric (Array (S))
1170+ end
11671171 ST = SymTridiagonal (S)
11681172 @test ST == SymTridiagonal (diag (S), diag (S,1 ))
11691173end
You can’t perform that action at this time.
0 commit comments