comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Comparing 2 arrays
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Comparing 2 arrays [message #55564] Sat, 25 August 2007 21:18 Go to previous message
teich is currently offline  teich
Messages: 33
Registered: May 2007
Member
Hi,

I would like to know if the data in two different 1 dimensional arrays
are the same or not. This should be for every index. For example, if
A=[0,1,2,3] and B=[0,1,3,2], then I would want the answer to be that A
and B are not equal even though they happen to have the same values in
different order. A problem with comparing each element is that the
numbers are floating point so I would prefer not to compare with
'EQ'. Has anyone any suggestions?

Alternatively, my arrays are actually from different structures. Is
there a way to compare structures? For example, data1.A vs data2.B in
the above example.


Thanks

Howie
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: new miracle of minor ticks
Next Topic: Programmatic size adjustment of widgets under Windows vs. UNIX (was "Natural size of explicitly-sized widget")

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:34:22 PDT 2025

Total time taken to generate the page: 0.00364 seconds