Skip to content

Commit

Permalink
Remove fptype (JuliaLang#567)
Browse files Browse the repository at this point in the history
* Remove fptype

* Add generic alternatives for _autodot and _crossdot
  • Loading branch information
devmotion committed Mar 22, 2020
1 parent 65351de commit f52b469
Show file tree
Hide file tree
Showing 3 changed files with 121 additions and 65 deletions.
7 changes: 0 additions & 7 deletions src/common.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,6 @@ const IntegerMatrix{T<:Integer} = AbstractArray{T,2}

const RealFP = Union{Float32, Float64}

## conversion from real to fp types

fptype(::Type{T}) where {T<:Union{Float32,Bool,Int8,UInt8,Int16,UInt16}} = Float32
fptype(::Type{T}) where {T<:Union{Float64,Int32,UInt32,Int64,UInt64,Int128,UInt128}} = Float64
fptype(::Type{Complex{Float32}}) = Complex{Float32}
fptype(::Type{Complex{Float64}}) = Complex{Float64}

# A convenient typealias for deprecating default corrected Bool
const DepBool = Union{Bool, Nothing}

Expand Down
Loading

0 comments on commit f52b469

Please sign in to comment.