pybispectra.utils.set_precision#
- pybispectra.utils.set_precision(precision: str) None [source]#
Set the precision of the outputs of PyBispectra classes and functions.
Notes
By default, PyBispectra uses double precision. Single precision may be desired to increase computational speed and reduce the likelihood of memory errors when handling large datasets.
- Attributes:
- precision
str
Precision to use. Accepts
"single"
(real values arenumpy.float32
and complex values arenumpy.complex64
) and"double"
(real values arenumpy.float64
and complex values arenumpy.complex128
).
- precision