m1 -: m2 might be better.
On Mon, Nov 24, 2014 at 8:30 AM, Jon Hough <jgho...@outlook.com> wrote: > What is the best (by which I mean fastest) way to test if two > matrices/tables of the same shapeare element-wise equal? > At the moment I always use < to box each matrix and then the equality test > is simply to use =.But I am not sure if < is slow, or if there is a better > way to do this. > e.g. if m1 is some matrix and I have another matrix m2, which has the same > shape, I do: > (< m1) = (< m2) > Is this the preferred way? > Thanks,Jon > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Devon McCormick, CFA ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm