We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06548f2 commit 2839e35Copy full SHA for 2839e35
src/symmetric.jl
@@ -988,7 +988,7 @@ See also [`hermitianpart!`](@ref) for the corresponding in-place operation.
988
This function requires Julia 1.10 or later.
989
"""
990
hermitianpart(A::AbstractMatrix, uplo::Symbol=:U) = Hermitian(_hermitianpart(A), uplo)
991
-hermitianpart(x::Number) = float(real(x))
+hermitianpart(x::Number) = real(x)
992
993
994
hermitianpart!(A::AbstractMatrix, uplo::Symbol=:U) -> Hermitian
0 commit comments