Anh Trinh <a...@pacbell.net> wrote on 10/16/2011 09:53:48 PM:
>
> How can get a row of 2D array which will return an 1D array?
>

There isn't a built-in method in Array that does this for you currently. So
you have to roll your own utility function that creates a new Array and
initializes it with the desired row from the source array.

If your 2D array is dense (the Array's Region has the rect property), then
this is fairly straightforward.

If the 2D array is not dense (the Array's Region does not have the rect
property), then this becomes more complex since you will need to decide if
you want the 1D array you construct to be dense, or to match the indexing
structure of the original array.  In the later case, you would then need to
use the region algebra functions of Region to build up the 1D region that
corresponds to the points in the row of the 2D region that you want to
select.

--dave
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to