Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: Re: Solving Simultaneous Equations with Matrices

by zentara (Archbishop)
on Apr 27, 2004 at 11:25 UTC ( #348450=note: print w/replies, xml ) Need Help??

in reply to Re: Solving Simultaneous Equations with Matrices
in thread Solving Simultaneous Equations with Matrices

You know, I looked at PDL when I wrote this, and it was nearly impossible to use compared to Math::Matrix or Math::Matrix::Real. PDL has a "simq" method to deal with simultaneous equations, but I couldn't figure out from the docs how to use it. The PDL module Math::Matrix:Ops has about 5 lines describing simq......the interface is very obscure.

I also tried to use PDL to get the inverse of a matrix, which had no inverse, and was given results. Either I had the rows - columns setup wrong, or there is something wacky with PDL.

I'm not really a human, but I play one on earth. flash japh
  • Comment on Re: Re: Solving Simultaneous Equations with Matrices

Replies are listed 'Best First'.
Re^3: Solving Simultaneous Equations with Matrices
by etj (Chaplain) on Jun 23, 2022 at 15:42 UTC
    For future reference: a slight surprise with PDL is the first dimension is column, second is row, unlike with Fortran, normal maths, etc. So sequence(2,3) has 2 columns, not 3. Printing out the ndarray shows what's going on. PDL::LinearAlgebra has many useful matrix functions that wrap lightning-fast LAPACK routines. I'd recommend that over the routines in PDL::MatrixOps, but see for a comparison of the various available ways to solve linear problems with PDL.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://348450]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2022-10-06 23:21 GMT
Find Nodes?
    Voting Booth?
    My preferred way to holiday/vacation is:

    Results (29 votes). Check out past polls.