You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Base.depwarn("`Complex`-`Quaternion` compatibility is deprecated and will be removed in the next breaking release (v0.7.0).", :Quaternion)
32
-
Quaternion(z.re, z.im, zero(z.re), zero(z.re))
33
-
end
34
26
functionQuaternion(s::Real, a::AbstractVector)
35
27
Base.depwarn("`Quaternion(s::Real, a::AbstractVector)` is deprecated and will be removed in the next breaking release (v0.7.0). Please use `Quaternion(s, a[1], a[2], a[3])` instead.", :Quaternion)
36
28
Quaternion(s, a[1], a[2], a[3])
@@ -41,10 +33,6 @@ function Quaternion(a::AbstractVector)
41
33
end
42
34
43
35
Base.promote_rule(::Type{Quaternion{T}}, ::Type{S}) where {T <:Real, S <:Real} = Quaternion{promote_type(T, S)}
44
-
function Base.promote_rule(::Type{Quaternion{T}}, ::Type{Complex{S}}) where {T <:Real, S <:Real}
45
-
Base.depwarn("`Complex`-`Quaternion` compatibility is deprecated and will be removed in the next breaking release (v0.7.0).", :Quaternion)
46
-
Quaternion{promote_type(T, S)}
47
-
end
48
36
Base.promote_rule(::Type{Quaternion{T}}, ::Type{Quaternion{S}}) where {T <:Real, S <:Real} = Quaternion{promote_type(T, S)}
0 commit comments