FFTW.jl icon indicating copy to clipboard operation
FFTW.jl copied to clipboard

`plan.pinv` undefined reference

Open grahamas opened this issue 5 years ago • 1 comments

Feel free to close this if this is expected/tolerated. I just happened across this error when trying to serialize an object that contained an FFTPlan, and the serializer (BSON) trips the undefined reference error. It'd be nice if it didn't error out, but I also understand it's a weird case.

using FFTW

plan = plan_fft(rand(20,20))
plan.pinv

ERROR: UndefRefError: access to undefined reference

grahamas avatar Aug 27 '19 02:08 grahamas

plan.pinv is lazily initialized if you invert the plan. Nowadays maybe we should use a Union{Nothing,Plan} instead of leaving the field uninitialized.

stevengj avatar Aug 28 '19 14:08 stevengj