Thanks a lot for your answer.
Thanks and Regards
Sparsh Mittal
On Sun, Feb 3, 2013 at 4:52 PM, Long Cheng <[email protected]> wrote:
> Hello Sparsh,
>
> You can check the X10 API at
> http://x10.sourceforge.net/x10doc/latest/ , for Array, there is a
> constructor Array(Int size), so it means that the size of the
> Array[double](2) is 2, but not mean 2d. If you want to create 2d
> Array, you should use the way Array(Region reg) . There are also many
> examples in the document "X10 Language Specification Version 2.3".
>
> Cheers,
>
> Long
>
> On 2/3/13, Sparsh Mittal <[email protected]> wrote:
> > Hello
> >
> > I want to declare a square 2d array in x10. Would you please tell me how
> to
> > do that.
> >
> > I saw pguide.pdf,
> > http://x10-lang.org/documentation/code-examples/small-examples.html,
> > x10-latest.pdf etc., but could not deduce and also could not find clearly
> > on web.
> >
> > This one:
> > val gridInfo = new Array[double](2);
> > compiles fine and if I am correct, (2) shows it is 2d. But still how to
> > specify the dimension? The dimension is statically known.
> >
> > I would be thankful for your help.
> > Thanks and Regards
> > Sparsh Mittal
> >
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_jan
> _______________________________________________
> X10-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/x10-users
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
X10-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/x10-users