pwtools.common.fix_eps

pwtools.common.fix_eps(arr, eps=2.220446049250313e-16, copy=True)[source]

Set values of arr to zero where abs(arr) <= eps.

Parameters:
  • arr (numpy nd array) –

  • eps (float eps) –

  • copy (bool) – return copy of arr

Return type:

numpy nd array