Good day.

There are three different versions of verb 'clean' in:
- '~system/main/numeric.ijs' (base library)
  sparse complex datatype: allowed
  boxed input: disallowed
- '~system/packages/math/mathutil.ijs' (base library)
  sparse complex datatype: disallowed
  boxed input: disallowed
- '~addons/math/lapack/lapack.ijs' (lapack addon)
  sparse complex datatype: disallowed
  boxed input: allowed

I could be wrong, but would it be better to have single version in single 
place (numeric.ijs or mathutil.ijs)? It may looks like:

NB. =========================================================
NB.*clean v clean y to tolerance of x (default 1e_10)
NB. form: tolerance (default 1e_10) clean numbers
NB. sets values less than tolerance to 0
clean=: 1e_10&$: : (4 : 0)
if. L. y do.
  x clean each y
else.
  if. (3!:0 y) e. 16 16384 do.
    j./"1 y * x <: | y=. +.y
  else.
    y * x <: |y
  end.
end.
)

--
Regards
Igor
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to