Skip to content

Commit

Permalink
real part of complexified dict
Browse files Browse the repository at this point in the history
  • Loading branch information
daanhb committed Apr 27, 2020
1 parent 440c11a commit 3a4b056
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bases/modifiers/complexified_dict.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const ComplexifiedDict1d{D,S<:Number,T<:Number} = ComplexifiedDict{D,S,T}
ComplexifiedDict(d::Dictionary{S,T}) where {S,T<:Real} = ComplexifiedDict{typeof(d),S,T}(d)

Base.complex(dict::Dictionary) = ensure_coefficienttype(complex(coefficienttype(dict)), dict)
Base.real(dict::ComplexifiedDict) = superdict(dict)

similardictionary(s::ComplexifiedDict, s2::Dictionary) = ComplexifiedDict(s2)

Expand Down

0 comments on commit 3a4b056

Please sign in to comment.