chop

chop(array, epsilon=1e-10)[source]

Truncate small values of a complex array.

Parameters
  • array (array_like) – array to truncate small values.

  • epsilon (float) – threshold.

Returns

A new operator with small values set to zero.

Return type

np.array