functions in yao_fast.i -
_export_wisdom
|
_export_wisdom | |
SEE | _init_fftw_plans |
_import_wisdom
|
_import_wisdom | |
SEE | _init_fftw_plans |
calcPSFVE
|
func calcPSFVE(pupil,phase,scale=) Similar to calcpsf, but way faster. This function calls the C routine _calcPSFVE that uses the vectorial library vDSP fft functions. Pupil and phase have to be float, this is insured in this wrapper routine. If you have any care for speed, I recommend that your input array are already floats. It takes time to cast from one type to another. Phase can be a data cube, in which case the return image is also a data cube of equal dimensions. Scale is a scaling factor on phase (the used phase is = to input phase * scaling factor) Warning: Works only for powers of 2 ! | |
SEE ALSO: | _calcPSFVE |
fftw_wisdom
|
func fftw_wisdom(void) this function should be run at the start of each yorick session. It reads out the wisdom file, if any, or calls _init_fftw_plans to optimize the wisdow if it does not find the file. | |
SEE ALSO: | _init_fftw_plans |
init_fftw_wisdom
|
func init_fftw_wisdom(nlimit) this function should be run once on your hardware to optimize fftw and save the wisdom file nlimit: fft will be optimized for n = 2^[1,...,nlimit] | |
SEE ALSO: | _init_fftw_plans |