rust-math / fftw

FFTW3 binding for Rust
Other
57 stars 25 forks source link

Add support for importing and exporting wisdom files #128

Open SallySoul opened 3 weeks ago

SallySoul commented 3 weeks ago

First, I would be interested in submitting a PR for this, but I wanted to get feedback first.

For reference, FFTW3 can save and later load accumulated wisdom about optimal plans it has found.

The symbols I'd want to add are a subset of import and export. In particular importing and exporting to a filename.

The fftw-sys crate already exports these symbols, so it would be a matter of adding them to the fftw crate proper. Perhaps to a util or wisdom module?

SallySoul commented 1 week ago

I'll add this change to my fork, but if you would like I can open a PR here as well. https://github.com/SallySoul/fftw3-rs/pull/1

Also open to feedback if you get the chance.