Skip to content

Should FFTW work on Duals via method overloading? #5

@michaelsachs

Description

@michaelsachs

FFTW currently does not work with Dual numbers.

using FFTW, DualNumbers
duals = [Dual(1,1), Dual(2,2)]
fft(duals)

This code returns ERROR: MethodError: no method matching plan_fft(::Vector{Dual{Int64}}, ::UnitRange{Int64}).

In this conversation, it sounds like FastTransformsForwardDiff intends to overload the required methods to make this snippet work. However, I am still getting the same error with the code below. Am I interpreting the discourse replies correctly?

using FFTW, DualNumbers, FastTransformsForwardDiff
duals = [Dual(1,1), Dual(2,2)]
fft(duals)

ERROR: MethodError: no method matching plan_fft(::Vector{Dual{Int64}}, ::UnitRange{Int64})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions