From 49bdeec7f670dfc0299355a7d4b89fe13f4af615 Mon Sep 17 00:00:00 2001 From: Sheehan Olver Date: Mon, 13 Nov 2023 12:00:13 +0000 Subject: [PATCH] Avoid StackOverflow in incomplete implementation --- src/definitions.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/definitions.jl b/src/definitions.jl index 6eafd81..0adf949 100644 --- a/src/definitions.jl +++ b/src/definitions.jl @@ -221,6 +221,7 @@ rfft(x::AbstractArray{<:Union{Integer,Rational}}, region=1:ndims(x)) = rfft(real plan_rfft(x::AbstractArray, region; kws...) = plan_rfft(realfloat(x), region; kws...) # only require implementation to provide *(::Plan{T}, ::Array{T}) +*(p::Plan{T}, x::AbstractArray{T}) where {T} = error("Implementations of Plan must overload `*(p::Plan{T}, x::AbstractArray{T})`") *(p::Plan{T}, x::AbstractArray) where {T} = p * copy1(T, x) # Implementations should also implement mul!(Y, plan, X) so as to support