Hi,
I am using X10 v2.0.3 .
What is wrong with the following code snippet ?
static type ArrayD = Array[double]{rank==1};
global val v: ArrayD;
v = Array.make[double](n,
(p(i):Point) => {(i*1.0) as double});
X10 complains as follows.
Multiple messages at this line.
-Method or static constructor not found for given matcher. Matcher:
Array
[x10.lang.Double](x10.lang.Int{self==n}, (id$13625:x10.lang.Int){}=>
x10.lang.Double)
-Method or static constructor not found for given matcher. Matcher:
Array
[x10.lang.Double](x10.lang.Int{self==n}, (id$13536:x10.lang.Int){}=>
x10.lang.Double)
On http://www.x10-lang.org/ I find the following. I would have expected that
this definition fits.
Array
public Array(Int size,
x10.lang.Fun_0_1<Point,T> init)
Declaration: this(x10.lang.Int, (id$53:x10.lang.Int){}=> T):
x10.array.Array[T]{self.region.rank==1, self.region.rect==true,
self.region.zeroBased==true}.
Construct Array over the region 0..size-1 whose values are initialized as
specified by the init function.
Can anyone fill me in ?
--
Mit freundlichen Grüßen / Kind regards
Dr. Christoph Pospiech
High Performance & Parallel Computing
Phone: +49-351 86269826
Mobile: +49-171-765 5871
E-Mail: [email protected]
-------------------------------------
IBM Deutschland GmbH
Vorsitzender des Aufsichtsrats: Erich Clementi
Geschäftsführung: Martin Jetter (Vorsitzender),
Reinhard Reschke, Christoph Grandpierre,
Klaus Lintelmann, Michael Diemer, Martina Koederitz
Sitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB
14562 WEEE-Reg.-Nr. DE 99369940
------------------------------------------------------------------------------
_______________________________________________
X10-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/x10-users