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 1e62be3 commit 591b867Copy full SHA for 591b867
src/symmetric.jl
@@ -1021,7 +1021,7 @@ See also [`hermitianpart!`](@ref) for the corresponding in-place operation.
1021
This function requires Julia 1.10 or later.
1022
"""
1023
hermitianpart(A::AbstractMatrix, uplo::Symbol=:U) = Hermitian(_hermitianpart(A), uplo)
1024
-hermitianpart(x::Number) = float(real(x))
+hermitianpart(x::Number) = real(x)
1025
1026
1027
hermitianpart!(A::AbstractMatrix, uplo::Symbol=:U) -> Hermitian
0 commit comments