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() ?

An Array also has a Layout object that represents the data layout in 
memory.
For now, it only supports row-major layout, so your assumption is correct,
but that may change in the future.  When it does change, an array with
column-major layout will obviously have different offsets for the same
elements than an array with row-major layout, even if the region is the 
same.
        Igor
-- 
Igor Peshansky  (note the spelling change!)
IBM T.J. Watson Research Center
X10: Parallel Productivity and Performance (http://x10-lang.org/)
XJ: No More Pain for XML's Gain (http://www.research.ibm.com/xj/)
"I hear and I forget.  I see and I remember.  I do and I understand" -- 
Confucius


------------------------------------------------------------------------------
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

Reply via email to