opticspy / lightpipes

LightPipes for Python, "Pure Python version"
https://opticspy.github.io/lightpipes/
BSD 3-Clause "New" or "Revised" License
227 stars 52 forks source link

Option to specify complex dtype #62

Closed leguyader closed 3 years ago

leguyader commented 3 years ago

This adds the possibility to specify the complex dtype used for the calculation. By default it uses complex which corresponds to np.complex128. Here we add the option at Begin to use for example np.complex64 which uses twice less memory for the calculation. The dtype in saved in Field and propagated during calculations.

FredvanGoor commented 3 years ago

I have added the dtype option to LightPipes-master. Thank you Leguyader! Fred van Goor