Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29280 Discussions

Is there a function to invert a matrix

Intel_C_Intel
Employee
1,004 Views
I see there are functions to multiply and transpose a matrix, is there one to invert a matrix?

Thanks,

David
0 Kudos
3 Replies
Jugoslav_Dujic
Valued Contributor II
1,004 Views
No, there's no standard function to invert a matrix.

First, note that LU decomposition + solution of linear system is far preferred method to matrix inversion. Matrix inversion is seldom really needed (only if you'll need the inverted matrix for many times afterwards).

I use linpack routines from netlib for that. See ssifa, sgefa and ssisl; make sure to download the underlying BLAS routines & dependencies as well (there's an appropriate option during the download). (Double precision equivalents have prefix "d" instead of "s").

Jugoslav
0 Kudos
durisinm
Novice
1,004 Views
I believe that the IMSL routines that come with the professional version of CVF include one to invert a matrix. I can't verify that right now because my system with CVF pro installed is down.

Mike
0 Kudos
david_jones
Beginner
1,004 Views
Yes, IMSL has several, depending on the type of matrix you want to invert (real,complex,positive definite...) and with and without iterative refinement.

The docs say they are based on/ derived from linpack and laback.
0 Kudos
Reply