2D array of real numbers
- From: jeanluc <jeanluc_picard_66@xxxxxxxxxxx>
- Date: Wed, 29 Aug 2007 06:48:32 -0700
I want to create a 2D array whose values initially contains 0.0
From "http://www.xav.com/perl/lib/Pod/perllol.html"
I see that the following code will set up a 3x2 2D array:
@2D_array = (
[0.0, 0.0, 0.0],
[0.0, 0.0, 0.0],
);
The above works fine but unfortunately I might have to make some large
arrays of arbitrary size. Doing it manually like above is not
possible.
I want to use the variables
$no_rows = 50;
$no_columns = 63;
To define a 50x63 2D arbitrary array filled with 0.0.
Anybody know how to do this?
Thanks!
.
- Follow-Ups:
- Re: 2D array of real numbers
- From: Petr Vileta
- Re: 2D array of real numbers
- From: Mirco Wahab
- Re: 2D array of real numbers
- From: Peter Makholm
- Re: 2D array of real numbers
- Prev by Date: FAQ 9.6 How do I download a file from the user's machine? How do I open a file on another machine?
- Next by Date: Re: 2D array of real numbers
- Previous by thread: FAQ 9.6 How do I download a file from the user's machine? How do I open a file on another machine?
- Next by thread: Re: 2D array of real numbers
- Index(es):