Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can invert a banded matrix?

Status
Not open for further replies.

ale974

Computer
Joined
Dec 1, 2003
Messages
1
Location
IT
Hi everyone,
I have a temporal complexity problem.
I would like to know if it's possible to optimize the temporal
complexity of the function "inv(A)", where A is a banded matrix.
The real problem is with which matlab function can I specify that A
is a banded matrix?
If A is an nxn matrix, the time complexity of the inversion is
O(n-cube), but if A is a banded matrix, the time complexity is now
O(n)..
thanks in advance,
Alessandra
 
Here is a reference for inverting block banded matrices


eispack is a fortran library that includes rountines for the inversion of banded matrix


You might also look into lapack and linpack libraries

If computational time is an issue, you could use the fortran routines, and figue out how to generate a dll from the fortran code and call the dll from matlab. You might need matlab compiler to do this. I believe the matlab package WAFO has some routines that are in fortran for speed.

Good Luck
JV
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top