According to the Wikipedia page here, a real, unsymmetric tridiagonal matrix can be brought to symmetric form by a similarity transform. Does anyone know if a generalization of the formula given there exists for unsymmetric tridiagonal matrices which are
- complex and Hermitian, and;
- contain nonzero elements in their upper-right and lower left corners (i.e. which are subject to periodic boundary conditions)
Thank you!
Do you mean that the matrix $M$ in question is a) Hermitian and b) is a sum of a tridiagonal matrix and a matrix $aE_{1n}+a^*E_{n1}$?
A general way that is not using b) would be as follows. You can 1. make $M$ tridiagonal Hermitian, and afterwards then 2. make it real symmetric.
Note that the first step ($k=1$) will smear the "boundary condition" entries all across the matrix, except the first column, so you won't be able to stop right after. I'm not sure if it would be computationally feasible for your matrix (you might have a sparse matrix with large $n$), but I also don't know whether this could be avoided. The Givens rotations also introduce nonzero elements away from corners.
Oh, and by the way: in 1. you should absolutely not calculate $U_k$ as a matrix if you don't want the $O(n^2)$ algorithm to become $O(n^3)$. Just pad the vectors $X_k$ with $k$ zeros and do vector-matrix (rather than matrix-matrix) multiplications with $M$.