Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions src/utilities.jl
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,16 @@
_FType(::Type{Int64}) = Float64
_FType(::Type{Float32}) = Float32
_FType(::Type{Float64}) = Float64
_FType(::Type{ComplexF32}) = Float32
_FType(::Type{ComplexF64}) = Float64
_FType(::Type{Complex{Int32}}) = Float32
_FType(::Type{Complex{Int64}}) = Float64
_FType(::Type{Complex{Float32}}) = Float32

Check warning on line 167 in src/utilities.jl

View check run for this annotation

Codecov / codecov/patch

src/utilities.jl#L165-L167

Added lines #L165 - L167 were not covered by tests
_FType(::Type{Complex{Float64}}) = Float64
_CType(::AbstractArray{T}) where {T<:Number} = _CType(T)
_CType(::Type{Int32}) = ComplexF32
_CType(::Type{Int64}) = ComplexF64
_CType(::Type{Float32}) = ComplexF32
_CType(::Type{Float64}) = ComplexF64
_CType(::Type{ComplexF32}) = ComplexF32
_CType(::Type{ComplexF64}) = ComplexF64
_CType(::Type{Complex{Int32}}) = ComplexF32
_CType(::Type{Complex{Int64}}) = ComplexF64
_CType(::Type{Complex{Float32}}) = ComplexF32

Check warning on line 176 in src/utilities.jl

View check run for this annotation

Codecov / codecov/patch

src/utilities.jl#L174-L176

Added lines #L174 - L176 were not covered by tests
_CType(::Type{Complex{Float64}}) = ComplexF64
Loading