Skip to content

Commit

Permalink
Revert complex conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremiahpslewis committed Aug 9, 2023
1 parent 14e6b75 commit bb57d86
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/projection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -169,15 +169,7 @@ function ProjectTo(x::Integer)
end
end

function ProjectTo(x::Complex{<:Integer})
@static if int2float_type == "Float16"
return ProjectTo(Float16(x))
elseif int2float_type == "Float32"
return ProjectTo(Float32(x))
else # Float64
return ProjectTo(Float64(x))
end
end
ProjectTo(x::Complex{<:Integer}) = ProjectTo(float(x))

# Preserve low-precision floats as accidental promotion is a common performance bug
for T in (Float16, Float32, Float64, ComplexF16, ComplexF32, ComplexF64)
Expand Down

0 comments on commit bb57d86

Please sign in to comment.