Re: Matrix Inversion
From: Rich Townsend (rhdt_at_barREMOVEtol.udel.edu)
Date: 01/10/04
- Previous message: Tim Prince: "Re: Newbie question about translating Fortran to C"
- In reply to: beliavsky_at_aol.com: "Re: Matrix Inversion"
- Next in thread: jelansberry: "Re: Matrix Inversion"
- Reply: jelansberry: "Re: Matrix Inversion"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 10 Jan 2004 01:38:58 -0500
beliavsky@aol.com wrote:
> porteiro-rs@bol.com.br (porteiro) wrote in message news:<1e208da0.0401091008.77497240@posting.google.com>...
>
>>Somebody can tell me how can I invert a matrix non-symetric and
>>non-triangular using the ".i." operator?
>>Thanks
>
>
> As Dan Tex1 points out, Fortran 95 does not have an intrinsic ".i."
> operator. The IMSL Fortran 90 MP LIBRARY that comes with Compaq Visual
> Fortran, Profession Edition, does define ".i." to invert a matrix. So
> you either write your own matrix inversion and overload it to ".i."
> (which I recommend for portability) or buy CVF 6.6 Professional.
>
> Are you sure you need a matrix inversion procedure, not a linear
> equation solver?
If you write your own, a good place to start is Numerical Recipes in
Fortran; online copies of the book can be accessed through the website
at http://www.nr.com, although I myself find it more satisfying (and
equitable) to actually own a copy of the book. The book provides a good
introduction to the subject; however, its worth noting a couple of
caveats before you take it as gospel truth. Firstly, while most of the
algorithms are great for learning about numerical analysis, some ae not
as up-to-date or accurate as they should be.
Secondly, the copyright stipulations which appear in the book can appear
rather threatening, and give the impression that anything based on their
work is "derivative" and therefore illegal. Don't worry too much about
this; the authors have made liberal use of other people's algorithms
(the Brent root finder is a particularly-clear example; they haven't
even bothered to change the variable names of the original ZEROIN
function from Netlib), to such an extent that they are in a weak
position to criticize others' use of the algorithms which they publish.
Of course, this is not a recommendation to rip off their code verbatim,
nor their explanatory text (which, IMHO, has a positive pedagogical
value); but don't be afraid to implement you own routines based (and
improved) on theirs. That's what their book is all about!
cheers,
Rich
- Previous message: Tim Prince: "Re: Newbie question about translating Fortran to C"
- In reply to: beliavsky_at_aol.com: "Re: Matrix Inversion"
- Next in thread: jelansberry: "Re: Matrix Inversion"
- Reply: jelansberry: "Re: Matrix Inversion"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|