Tridiagonal matrices multiplication

  • Context: Graduate 
  • Thread starter Thread starter nicolas1991
  • Start date Start date
  • Tags Tags
    Matrices Multiplication
Click For Summary
SUMMARY

The discussion focuses on the efficient multiplication of nxn tridiagonal matrices, specifically how to calculate the number of operations required for powers of a matrix A (denoted as Ap). The participants emphasize the importance of leveraging the matrix's structure to minimize calculations. For A2, it is established that most terms require three multiplications and two additions, while the first and last rows and columns have fewer nonzero entries. The conversation also highlights the need to consider different methods for calculating higher powers, such as A4 = A3.A or A2.A2, to optimize computational efficiency.

PREREQUISITES
  • Understanding of tridiagonal matrix properties
  • Familiarity with matrix multiplication techniques
  • Knowledge of computational complexity analysis
  • Experience with numerical methods for matrix operations
NEXT STEPS
  • Research efficient algorithms for tridiagonal matrix multiplication
  • Learn about the computational complexity of matrix exponentiation
  • Explore optimization techniques for banded matrices
  • Investigate numerical methods for calculating matrix powers
USEFUL FOR

Mathematicians, computer scientists, and engineers involved in numerical analysis, particularly those working with matrix computations and optimizations in linear algebra.

nicolas1991
Messages
2
Reaction score
0
I have a nxn tridiagonal matrix (let's name it A) and i want to find a way to solve Ap, p=1,2,3,...inf, most efficient* (using the structure of my matrix)
my first problem is how many calculations do i need for A2,
and then how many calculations for the hole Ap ? any help please!*by most efficient i mean with the least calculations possible
 
Physics news on Phys.org
For A2, work out which terms are nonzero. It is a banded matrix, but not tridiagonal.

Then work out how many calculations you have to do to find each nonzero entry. For most of the terms that will be 3 miltiples and 2 adds, but the first and last rows and columns of A don't have 3 nonzero entries.

Then go on to A3, A4, etc.

If you are want to calculate all the powers of A in order, there is more than one way to do the higher powers. For eaxmple A4 = A3.A or A2,A2. One way might be cheaper than the other.
 
AlephZero said:
For A2, work out which terms are nonzero. It is a banded matrix, but not tridiagonal.

Then work out how many calculations you have to do to find each nonzero entry. For most of the terms that will be 3 miltiples and 2 adds, but the first and last rows and columns of A don't have 3 nonzero entries.

Then go on to A3, A4, etc.

If you are want to calculate all the powers of A in order, there is more than one way to do the higher powers. For eaxmple A4 = A3.A or A2,A2. One way might be cheaper than the other.

first of all thank you ! but my real problem is how to calculation the number of calculations ( :-p ) i need for a Ap, i can find out how many calculations i need for A2, and for A3 etc. but every time the array change structure (tridiagonal->fivediagonal->sevendiagonal ...) any help please...
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 19 ·
Replies
19
Views
4K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K