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

Home » Public Forums » archive » Re: From IDL to JS or PHP or C++
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: From IDL to JS or PHP or C++ [message #64888] Thu, 29 January 2009 08:31
Conor is currently offline  Conor
Messages: 138
Registered: February 2007
Senior Member
On Jan 28, 11:52 am, asry...@googlemail.com wrote:
> Hello,
>
> Could anyone translate this bit to JavaScript, PHP or C++?
>
> index = Where(array EQ 2.5, count)
> xy = array_indices(array, index[0])
> subarray = array[xy[0]-1:xy[0]+1, xy[1]-1:xy[1]+1]
>
> Thank you

I do lots of php and idl programming, so I suppose I could translate
it into IDL. However there isn't really a direct php-idl correlation
because php doesn't really have two-dimensional arrays like IDL does.
You can make a two dimensional array in php by but this would be more
related to an array of pointers pointing to arrays in IDL, than it
would be to a two dimensional IDL array. I'm not sure if that's
really what you want...
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: 2-dimensional to a 3-dimensional
Next Topic: Re: 2-dimensional to a 3-dimensional

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

Current Time: Fri Oct 10 12:03:36 PDT 2025

Total time taken to generate the page: 1.12046 seconds