Function File: function ztvals (x, tol)

Replaces tiny elements of the vector x by zeros. Equivalent to

  x(abs(x) < tol * norm (x, Inf)) = 0

tol specifies the chopping tolerance. It defaults to 1e-10 for double precision and 1e-5 for single precision inputs.

Package: general