I recommend the PDL Book as a good reference and introduction to many of the capabilities of the Perl Data Language.
http://pdl.perl.org/content/pdl-book-toc.html --Chris On Tue, Oct 30, 2012 at 12:21 AM, Nan Yu <[email protected]> wrote: > Hi, > > I’m working with a large 2D matrix: about 4000 x 50000. > > I used to use perl 2D array to do the job (when working with > smaller dimensions) but the memory became an issue when the dimension grows > into this size. So I decided to use PDL. > > After I finished my code and started testing it, I found out that just to > initiate the 2D matrix takes a long time. > > I start with an 1D array of 4000 elements and then use “$matrix = > $matrix->glue(1,$oneDarray)” within a loop (from 1 to 50000) to create the > 2D matrix. > > The first 5000-10000 were reasonable quick (within 10 mins) then the speed > slows down a lot. > > I’m wondering if I used a wrong way to do the initiate of > the matrix. > > Could someone please tell me how to work with the large 2D > matrix? > > Thanks! > > Nan Yu > > > > > Please note that my email address has changed to [email protected] > > ________________________________ > *** The information contained in this communication may be confidential, is > intended only for the use of the recipient(s) named above, and may be > legally privileged. If the reader of this message is not the intended > recipient, you are hereby notified that any dissemination, distribution, or > copying of this communication, or any of its contents, is strictly > prohibited. If you have received this communication in error, please return > it to the sender immediately and delete the original message and any copies > of it. If you have any questions concerning this message, please contact the > sender. *** > > _______________________________________________ > Perldl mailing list > [email protected] > http://mailman.jach.hawaii.edu/mailman/listinfo/perldl > _______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
