In numpy I have an array like
[0 + 0.5j, 0.25 + 1.2352444e-24j, 0.25+ 0j, 2.46519033e-32 + 0j]
what is the fastest and easiest way to set the super low value to zero to get
[0 + 0.5j, 0.25 + 0j, 0.25+ 0j, 0 + 0j]
efficiency is not the paramount.
question from:https://stackoverflow.com/questions/14419290/set-very-low-values-to-zero-in-numpy