in reply to PDL works for real number matrix operations, but not working for complex number matrix operations.
The second of these indicates a conflict between CGI and (presumably) PDL::Complex. Both are apparently importing a function i() in your name space. When you put CGI and HTML generation on the side for the moment (not loading CGI and CGI::Carp, and modifying the code accordingly), you avoid the conflict. The complex matrix $matrixM is printed out fine for me after that change. Expect the number you specify as "2+1*i" to be printed as "[2, 1]". The output format isn't quite as intuitive as the input format.Prototype mismatch: sub main::append: none vs (;@) at (eval 6) line 8 Prototype mismatch: sub main::i: none vs () at ./ttt line 10
I haven't followed your code further, except noting that it announces the inverse of $MatrixM, but prints its determinant.
Anno
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: PDL works for real number matrix operations, but not working for complex number matrix operations.
by gmacfadden (Sexton) on Mar 19, 2007 at 19:20 UTC | |
by Anno (Deacon) on Mar 19, 2007 at 21:58 UTC | |
by Anno (Deacon) on Mar 20, 2007 at 21:48 UTC | |
by gmacfadden (Sexton) on Mar 21, 2007 at 17:00 UTC | |
by etj (Priest) on Jun 21, 2022 at 17:44 UTC |