srdst13 has asked for the wisdom of the Perl Monks concerning the following question:

I have a rather large matrix (200 columns by several hundred to thousands of rows) that I would like to be able to take slices of (select columns, rows) and then operate on the slices (like plotting, etc.). In the spirit of perl's many ways to do this, can folks point me to useful modules (one is Math::Matrix that looks rather dated) that might allow me to do this fast (this will be used in a CGI environment)?

Thanks.

Replies are listed 'Best First'.
Re: Simple matrix operations
by Zaxo (Archbishop) on Dec 22, 2004 at 12:09 UTC

    PDL is what you want. It even includes plotting modules.

    After Compline,
    Zaxo

      PDL looks like the answer. I continue to be blown away by what is available in the world of perl.

      Thanks, Zaxo and Joost.
Re: Simple matrix operations
by ozone (Friar) on Dec 22, 2004 at 12:17 UTC
    I think this one of those few instances where Perl is the wrong tool for the job. High speed math operations are probably best done in C++. Having said that, CGI is best done in Perl :-)

    Anyway, a quick search on CPAN returns quite a few results, with Math::Matrix at the top of the list. I don't think it's dated, just probably perfect and so not in need of changes :-D

    What's the Perl structure of your matrix?