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
Great package, thanks, have been doing something similar recently. One thing which would be great to have here is to allow using existing non-Dual plans on Dual arrays. Sometimes you have a calculation with precomputed plans, then you later want to compute derivatives, e.g.
plan =plan_fft(Array{Float64}(undef, 10))
x =rand(10)
foo = A ->norm(plan * (A * x))
ForwardDiff.derivative(foo, 1) # ArgumentError: FFTW plan applied to wrong-size array
Should be possible to use the existing plan and manually loop over slices of the dual2array array (may need a copy, not sure if memory needs to be contiguous there, probably yes). This is probably less efficient than the single "batched" plan approach you have here when planning with Duals, but will allow this to work at least.
The text was updated successfully, but these errors were encountered:
Hi, could someone provide a working example of how to generate an FFTW plan with FastTransformsForwardDiff.jl that would allow me to do the example in the README or otherwise the problem in #4 (comment)? Without documentation for this package I am struggling to understand how to use it.
Great package, thanks, have been doing something similar recently. One thing which would be great to have here is to allow using existing non-Dual plans on Dual arrays. Sometimes you have a calculation with precomputed plans, then you later want to compute derivatives, e.g.
Should be possible to use the existing plan and manually loop over slices of the
dual2array
array (may need a copy, not sure if memory needs to be contiguous there, probably yes). This is probably less efficient than the single "batched" plan approach you have here when planning with Duals, but will allow this to work at least.The text was updated successfully, but these errors were encountered: