This will use tolerant comparison, which might be no good for this application (especially if the numbers get bigger). You would need

I. (=!.0 >./) expr

or

(i. >./) expr

(this last actually performs (i.!.0 >./)  )

Henry Rich

On 6/12/2014 5:13 AM, Raul Miller wrote:
Also
    I. (= >./) expr
gives all indices of the maximum, if you ever need that.

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

Reply via email to