in reply to Re: problem with complex matrix multiplication using PDL
in thread problem with complex matrix multiplication using PDL

Hi , Thanks a lot. I tried your code and keep getting this error.

smh> perl -w math_matrix.pl syntax error at math_matrix.pl line 9, near "{ " Execution of math_matrix.pl aborted due to compilation errors.

If this works, it will do what I need. Regards, smh

Replies are listed 'Best First'.
Re^3: problem with complex matrix multiplication using PDL
by Athanasius (Archbishop) on Oct 09, 2012 at 06:37 UTC

    Looks like you’re using an older version of Perl. Change the code to:

    { package Math::Matrix; ...

    This should remove the compile error. However, the inverse calculations will likely be incorrect. If so, upgrade Math::Complex to the latest version (1.59), and you should be set to go.

    Athanasius <°(((><contra mundum