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 1a655ce commit 06548f2Copy full SHA for 06548f2
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) = real(x)
+hermitianpart(x::Number) = float(real(x))
992
993
994
hermitianpart!(A::AbstractMatrix, uplo::Symbol=:U) -> Hermitian
0 commit comments