So I went and installed Math::Matrix, which does matrices ok, except I could not find a way to do an inverse (which I really really need) even though it said as the header for the documentation it could do inversion, but there was no routine for it.

So then I decided to try the PDL because it said that it could do inversion and actually had a command called "inv" listed. I got PDL::Matrix and PDL::MatrixOps modules loaded up,

root@admin PDL-2.4.2# perl -MPDL::Matrix -e shell
root@admin PDL-2.4.2# perl -MPDL::MatrixOps -e shell
root@admin PDL-2.4.2#

but when I tried to run a simple program to confirm it was working I got this error:

Can't locate object method "xchg" via package "PDL::Matrix" at /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/PDL/Matrix.pm line 137.

I am now lost. I do not know what this means except that there might be some module that I need loaded that I forgot to load. Any ideas?

Chris Herold

In reply to Re^2: Matrix Manipulation with Perl by cdherold
in thread Matrix Manipulation with Perl by cdherold

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.