Skip to content

Commit 591b867

Browse files
Update src/symmetric.jl
Co-authored-by: Daniel Karrasch <daniel.karrasch@posteo.de>
1 parent 1e62be3 commit 591b867

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/symmetric.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@ See also [`hermitianpart!`](@ref) for the corresponding in-place operation.
10211021
This function requires Julia 1.10 or later.
10221022
"""
10231023
hermitianpart(A::AbstractMatrix, uplo::Symbol=:U) = Hermitian(_hermitianpart(A), uplo)
1024-
hermitianpart(x::Number) = float(real(x))
1024+
hermitianpart(x::Number) = real(x)
10251025

10261026
"""
10271027
hermitianpart!(A::AbstractMatrix, uplo::Symbol=:U) -> Hermitian

0 commit comments

Comments
 (0)