This seems to work. Thanks.
I'm assuming this must be faster than boxing...

> Date: Mon, 24 Nov 2014 08:33:42 -0500
> From: devon...@gmail.com
> To: programm...@jsoftware.com
> Subject: Re: [Jprogramming] Best way to check matrix equality
> 
> 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
                                          
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to