you want -: not =

   (2 2 $ i.4)-: i. 2 2 
1 



----- Original Message -----
From: Jon Hough <[email protected]>
To: [email protected]
Cc: 
Sent: Thursday, July 17, 2014 10:26:30 PM
Subject: [Jprogramming] Testing equality of arrays

Firstly, sorry, I am typing on my phone. There may be spelling errors.

I am trying to test eqaulity of multidimension arrays. 
I.e checkif array A is elementwise equal to array B.

Problem is the answer is always an array of 1 and 0, because each element is 
checked against its corresponding element in the otjer array.

But this is not what I need. I judt want a single 1 or 0.
For lists I suppose I could */ through the list but for larger dimension arrays 
this gets messy.
Is there a neat way to do this?
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

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

Reply via email to