Shet, Aniruddha G. wrote on 04/03/2007 07:41:35 PM:
>
> Hi,
>
> I am trying to extract the lower triangular portion of a [1:n, 1:n]
> region. Since the dimensions are ordered from 0 to n-1, I am having to
> do this using region.factory.lowerTriangular(n+1) - [0:n, 0:0]. The
> compiler flags this as an error stating that the regions do not have
> matching ranks. Is this correct? I am able to work around this by
> explicitly casting region.factory.lowerTriangular(n+1) as a region of
> rank 2.
Aniruddha,
Most of the X10 standard libraries have not yet been annotated with
appropriate dependent types. Your workaround is the correct one (and
will work even after the libraries are annotated). You might want to
add a comment to that effect in your code, though...
Igor
--
Igor Peshansky (note the spelling change!)
IBM T.J. Watson Research Center
XJ: No More Pain for XML's Gain (http://www.research.ibm.com/xj/)
X10: Parallel Productivity and Performance (http://x10.sf.net/)
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
X10-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/x10-users