On 12/05/2016 07:58 AM, email@example.com wrote:
> I am trying to compare two very long float arrays upto precision 0.0001
> without using for loop as it is taking alot time in processing. Can any one
> guide me how to compare two long arrays in float????
similar=abs(A-B) le 0.0001
Similar is then a byte array that is 1 where A approx B, 0 elsewhere.
If you want instead a list of indices, where A approx B, use
w=where(abs(A-B) le 0.0001,/null)
By the way, avoid using long for anything else than long integers
(32-bit), otherwise you cause confusion.
I hope this helps, Markus