Skip to content

Commit

Permalink
use new Complex consts
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreySarnoff authored Feb 24, 2019
1 parent c373b30 commit 07a0611
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/Double.jl
Original file line number Diff line number Diff line change
Expand Up @@ -214,23 +214,3 @@ const hash_0_double_lo = hash(zero(UInt), hash_double_lo)

Base.precision(::DoubleFloat{T}) where {T<:IEEEFloat} = 2 * precision(T)

#=
ComplexD64(rea::DoubleFloat{T}, ima::DoubleFloat{T}) where {T<:IEEEFloat} =
Complex(Double64(rea), Double64(ima))
ComplexD32(rea::DoubleFloat{T}, ima::DoubleFloat{T}) where {T<:IEEEFloat} =
Complex(Double32(rea), Double32(ima))
ComplexD16(rea::DoubleFloat{T}, ima::DoubleFloat{T}) where {T<:IEEEFloat} =
Complex(Double16(rea), Double16(ima))
ComplexD64(c::C) where {C<:Complex} = ComplexD64(real(c), imag(c))
ComplexD32(c::C) where {C<:Complex} = ComplexD32(real(c), imag(c))
ComplexD16(c::C) where {C<:Complex} = ComplexD16(real(c), imag(c))
ComplexD64(r::Real, i::Real) = ComplexD64(Double64(r), Double64(i))
ComplexD32(r::Real, i::Real) = ComplexD32(Double32(r), Double32(i))
ComplexD16(r::Real, i::Real) = ComplexD16(Double16(r), Double16(i))
ComplexD64(r::R) where {R<:Real} = ComplexD64(Double64(r), zero(Double64))
ComplexD32(r::R) where {R<:Real} = ComplexD32(Double32(r), zero(Double32))
ComplexD16(r::R) where {R<:Real} = ComplexD16(Double16(r), zero(Double16))
=#

0 comments on commit 07a0611

Please sign in to comment.