Skip to content

Commit cc6e3d8

Browse files
committed
revert definitions
1 parent 6028c0e commit cc6e3d8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/definitions.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,7 @@ rfft(x::AbstractArray{<:Union{Integer,Rational}}, region=1:ndims(x)) = rfft(real
221221
plan_rfft(x::AbstractArray, region; kws...) = plan_rfft(realfloat(x), region; kws...)
222222

223223
# only require implementation to provide *(::Plan{T}, ::Array{T})
224-
plan_mul(p::Plan{T}, x::AbstractArray) where {T} = p * copy1(T, x)
225-
plan_mul(p::Plan{T}, x::AbstractArray{T}) where {T} = error("The plan interface requires overloading *(::MyPlan{T}, ::AbstractArray{T}) where T")
226-
*(p::Plan, x::AbstractArray) = plan_mul(p, x)
224+
*(p::Plan{T}, x::AbstractArray) where {T} = p * copy1(T, x)
227225

228226
# Implementations should also implement mul!(Y, plan, X) so as to support
229227
# pre-allocated output arrays. We don't define * in terms of mul!

0 commit comments

Comments
 (0)