On Sat, Jun 2, 2012 at 5:04 AM, Rodrique Djonkou <djon...@gmail.com> wrote:
> Dear Josh
>
> Thanks you very much for the help you provide.
>
> Basically, I have many files and I need to apply an algorithm in each pair
> of these files. (to come out with a matrix of result)
> each file has a number, and I would specify for each thread which pair of
> file it should compute.
>
> I have x threads, and I want to build for each point, a list of points of
> the matrix that he should compute.
> e.g. I have a matrix of 2x2, with 3 threads,
> I want that the first thread computes the coordinates (0,0) ; (0,2) and
> (2,1),
> the second thread computes the coordinates (1,1) ; (1,0) and (2,0)
> and the last thread computes the coordinates (2,2); (1,2) and (0,1)
>
> For that I want three region R1, R2, R3 where each region contains the
> specified points
> then each thread could take the region and just do a for(p:Point in R) ....
>
> Hope I'm not confuse.
> Thanks for your help !
>
> Rodrique D.
>
>
>
>
> Hi Rodrique,
>
> addition and subtraction (or more formally, union and difference) are
> not currently defined on the Region class.
>
> These operations were defined in previous versions of X10 -- you can see
> the code commented out in x10/array/Region.x10 -- but when the Array
> library was rewritten in X10 2.1 they proved difficult to implement with
> the appropriate combination of generality and performance. I believe
> there are plans to re-implement them but they have not been a high priority.
>
> What use case did you have in mind? It may be possible to come up with
> an algorithm that achieves the same thing without these operations, for
> now. Can you provide pseudocode?
>
> Cheers,
>
> Josh
>
> On 30/05/12 07:09, Rodrique Djonkou wrote:
> > Dear,
> >
> > Thanks you very much for the help your provide.
> >
> > Please how could I made the addition and the soustraction of two regions ?
> >
> > Thanks for your help
> >
> > Rodrique
>
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users