Use Match -: . 1 2 3 -: 1 2 3 1
http://www.jsoftware.com/jwiki/Vocabulary/minusco#dyadic On Thursday, July 17, 2014, Jon Hough <[email protected]> wrote: > 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 > -- Sent from Gmail Mobile ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
