-
Notifications
You must be signed in to change notification settings - Fork 641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
arbitrary frequency grid for DFT functions in C interface #1154
Conversation
|
As I commented when we discussed #1141, we should probably be using Then if you do |
The Along the way, we probably want to change the |
Note that for each function there should be two interfaces: the old interface that takes |
|
After removing the |
) * arbitrary frequency grid for DFT functions in C interface * SWIG typemaps for freq array * switch double *freqs, sizes_t Nfreqs to std::vector<double> * fixes * add C test and minor updates to docs * workaround for C++98 in tests/flux.cpp which does not support initialization using containers * copy freq std::vector directly rather than element by element
Progress towards #1070 (still needs Python interface). Closes #1141.
Adds support for arbitrary frequency grids for DFT functions. There are now two interfaces to all DFT functions: (1) the original equally-spaced grid specified by (
freq_min
,freq_max
,Nfreq
) and (2) the new unequally-spaced grid specified bystd::vector<double>
.ToDo: Python interface and tutorial example to be added in a separate PR.