Christoph Pospiech <christoph.pospi...@de.ibm.com> wrote on 06/03/2010
02:00:35 AM:
>
> Hi,
>
> the Array class has a raw() function that yields a Rail. Can I safely
assume
> that this is the representation of the data in memory ? In particular, if
two
> Arrays are built on the same region then raw(i) would point to
corresponding
> elements for both Array objects for every 0 <= i < raw().length() ?
> --
This is true in 2.0.3 and 2.0.4. Details may change in 2.1.0, but some
similar functionality will be preserved for interoperability with native
math libraries.
Note however that if the region is not rectangular, there will be some i
such that raw(i) is not actually a valid element of the array. The raw()
storage is sized according to the bounding box of the Region and if the
Region is not rectangular some of the elements of the raw() Rail will not
actually be used to store Array elements.
--dave
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users