@@ -238,31 +238,31 @@ nonhermitianwrappertype(::Hermitian{<:Real}) = Symmetric
238238nonhermitianwrappertype (:: Hermitian ) = identity
239239
240240"""
241- LinearAlgebra.uplo(S::Union{Symmetric, Hermitian})::Char
241+ LinearAlgebra.uplo(S::Union{Symmetric, Hermitian})::Symbol
242242
243- Return a `Char ` corresponding to the stored triangular half in the matrix `S`,
243+ Return a `Symbol ` corresponding to the stored triangular half in the matrix `S`,
244244that is, the elements are common between `S` and `parent(S)` for that triangular half.
245245
246246# Example
247247```jldoctest
248- julia> S = Symmetric([1 2; 3 4])
248+ julia> S = Symmetric([1 2; 3 4], :U )
2492492×2 Symmetric{Int64, Matrix{Int64}}:
250250 1 2
251251 2 4
252252
253253julia> LinearAlgebra.uplo(S)
254- 'U': ASCII/Unicode U+0055 (category Lu: Letter, uppercase)
254+ :U
255255
256256julia> H = Hermitian([1 2; 3 4], :L)
2572572×2 Hermitian{Int64, Matrix{Int64}}:
258258 1 3
259259 3 4
260260
261261julia> LinearAlgebra.uplo(H)
262- 'L': ASCII/Unicode U+004C (category Lu: Letter, uppercase)
262+ :L
263263```
264264"""
265- uplo (S:: HermOrSym ) = S. uplo
265+ uplo (S:: HermOrSym ) = sym_uplo ( S. uplo)
266266
267267size (A:: HermOrSym ) = size (A. data)
268268axes (A:: HermOrSym ) = axes (A. data)
0 commit comments