Re: Comparing 2d sequences
- Posted by Ricardo Niederberger Cabral <rnc at INFOLINK.COM.BR> Jun 10, 1997
- 749 views
> >How can I compare two 2d sequences dimensioned like this: > >repeat(repeat(1,100),100) > > (Each element ranging from 1 to 10, for example) > >And create a 2d "mask" sequence with zeros where > >the corresponding elements of the 2 sequences are different ? > > I'm using the and_bits function but it sometimes (and don't know > why) give > >me something wrong. > function Compare2D(sequence a, sequence b) > return not (a-b) > end function Thank you, but I want to know what is different between two 2D sequences by reading a "mask" sequence (with the same length of the compared sequences) where each 0 means that the corresponding element in both compared sequences are different. (Sorry if it's not clear, because I'm not a native english speaker) --- Ricardo Niederberger Cabral <rnc at infolink.com.br>