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

Home » Public Forums » archive » Re: Check if coordinate is in array
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Check if coordinate is in array [message #34071] Wed, 19 February 2003 19:53
Thomas Gutzler is currently offline  Thomas Gutzler
Messages: 44
Registered: November 2002
Member
Thomas Gutzler wrote:
>
> FUNCTION is_element_of_2D, x, arr
> xidx = WHERE(arr[0,*] EQ x[0], c1)
> yidx = WHERE(arr[1,*] EQ x[1], c2)
> IF (c1 + c2 GT 0) THEN tmp = WHERE(MATRIX_MULTIPLY(xidx, $

replace this by: IF (c1 NE 0 AND c2 NE 0) THEN ...

> 1./TRANSPOSE(yidx)) EQ 1, c3) ELSE c3 = 0
> RETURN, c3 NE 0
> END

Tom
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Passing BYTE array to COM DLL written in VC++
Next Topic: Re: differences idl5.5 and idl5.6

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

Current Time: Wed Oct 08 13:26:20 PDT 2025

Total time taken to generate the page: 0.00488 seconds