Skip to content

Commit 46555fa

Browse files
committed
Change to Symbol
1 parent 4ec3d99 commit 46555fa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/symmetric.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -238,31 +238,31 @@ nonhermitianwrappertype(::Hermitian{<:Real}) = Symmetric
238238
nonhermitianwrappertype(::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`,
244244
that 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)
249249
2×2 Symmetric{Int64, Matrix{Int64}}:
250250
1 2
251251
2 4
252252
253253
julia> LinearAlgebra.uplo(S)
254-
'U': ASCII/Unicode U+0055 (category Lu: Letter, uppercase)
254+
:U
255255
256256
julia> H = Hermitian([1 2; 3 4], :L)
257257
2×2 Hermitian{Int64, Matrix{Int64}}:
258258
1 3
259259
3 4
260260
261261
julia> 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

267267
size(A::HermOrSym) = size(A.data)
268268
axes(A::HermOrSym) = axes(A.data)

0 commit comments

Comments
 (0)