fast_abs#

diffsims.utils.fourier_transform.fast_abs(x, y=None)[source]#

Fast computation of abs of an array

Parameters:
  • x (numpy.ndarray) – Input

  • y (numpy.ndarray or None, optional) – If y is not None, used as preallocated output

Returns:

y – Array equal to abs(x)

Return type:

numpy.ndarray