---Alex Rufon wrote: > What I want to do is to replace all zero in the matrix with infinity.
]M=: 4 [EMAIL PROTECTED] 6 5 9 2 4 9 0 7 0 4 6 8 3 8 1 2 amendZeros=: _&(([: I. 0 = ,@])}) amendZeros M 6 5 9 2 4 9 _ 7 _ 4 6 8 3 8 1 2 Check out Chapter 6.3.3 Linear Indices in Learning J ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
