A Yule-Walker-like solver for band matrices

Let us denote the leading $ k\times k$ matrix of $ B$ with $ B_k$. The Yule-Walker-like equations we would like to solve for this band matrix are the following ones:

$\displaystyle B_k Y_{k} =-T_{k}$    

where $ T_{k}$ is a $ k\times l$ matrix of the following form:

$\displaystyle T_{k}=
 \left[ \begin{array}{c}
 0 \ \hline
 I_l
 \end{array} \right],$    

where $ I_l$ denotes the identity matrix of size $ l$. If we are in the beginning of the algorithm, we have that $ k\leq l$. In this case we take only the last $ k$ lines of $ I_l$, this means that:

$\displaystyle T_k=\left\{
 \begin{array}{lcl}
 [0, I_k] \par & \mbox{ if } & k ...
...\ \hline
 I_l
 \end{array} \right] & \mbox{ if } & k > l
 \end{array}
 \right.$    

This means that also here we have to solve in fact $ l$ equations to obtain the solution of the Yule-Walker-like equation. Firstly we will derive an $ O(l^2n^2)$ method, but afterwards we will reduce this complexity to come to an $ O(l^2n)$ algorithm.

Note that for this particular Yule-Walker system $ k$ first rows of the right-hand side of the equations changes in every step. This was not the case in the system corresponding to the higher order semiseparable matrix, in that case the right-hand side was increased in dimension every time by adding one more row.

Let us solve now the $ (k+1)$th order Yule-Walker-like equation, assuming we have the solution of the $ k$th order system. The $ (k+1)$th system $ B_{k+1} Y_{k+1} = -T_{k+1}$ can be rewritten in block form, using the representation matrix $ A$, which represents the band matrix $ B$ (see Section 2.2):

$\displaystyle \left[ \begin{array}{c\vert c}
{\rule[0.1cm]{0cm}{-0.3cm}
B_k } &...
...t[ \begin{array}{c}
Z_{k+1}\\
\hline
\mathbf{\alpha}_{k+1}
\end{array} \right]$ $\displaystyle =$ $\displaystyle -T_{k+1},$  

where $ \bar{\mathbf{a}}_k$ equals the first $ l$ elements of the vector $ \mathbf{a}_k$, so in fact $ \mathbf{a}_k=[\bar{\mathbf{a}}_k,a_{k,l+1}]$. Writing the right-hand side in block form does not give us something of the following form: $ [T_k^T,\times]^T$. To be able to use the right-hand side in the recursion formulas we need to use an operator. Let us define the shift operator $ P$ as the $ l \times l$ matrix of the following form

$\displaystyle P=\left[ \begin{array}{ccccc}
 0 & & & \ldots & 0\ 
 1 & 0 & & \...
... 
 \vdots & & \ddots & \ddots \ 
 0 & \ldots & 0 & 1 & 0
 \end{array} \right].$    

Multiplying a matrix on the right with this operator, will shift all the columns in this matrix one position to the left, and add a trailing zero column. Using this shift matrix the right-hand side $ T_{k+1}$ can be written as

$\displaystyle T_{k+1}
 =
 \left[ \begin{array}{c}
 T_kP \ 
 \left[ 0,\ldots,0,1 \right]
 \end{array} \right].$    

Therefore we can extract the following two formulas in terms of the previous right-hand side $ T_k$:

$\displaystyle B_k\; Z_{k+1} + T_{k}\; \bar{\mathbf{a}}_{k+1}^T\;\mathbf{\alpha}_{k+1} = -T_k P %[0,t^{k-1}P_{k-1}]
$    

and

$\displaystyle \bar{\mathbf{a}}_{k+1}\; T_{k}^T Z_{k+1} + a_{k+1,l+1} \mathbf{\alpha}_{k+1}\; = -[0,\ldots,0,1].$ (11)

Rewriting the first equation towards $ Z_{k+1}$ leads to
$\displaystyle Z_{k+1} = -B_k^{-1} T_{k}( P + \bar{\mathbf{a}}_{k+1}^T \mathbf{\alpha}_{k+1}) = Y_k (P + \bar{\mathbf{a}}_{k+1}^T \mathbf{\alpha}_{k+1}).$      

Combined with Equation (11) we can determine $ \mathbf{\alpha}_{k+1}$,

$\displaystyle \alpha_{k+1}=(-1)
 \frac{[0\ldots,0,1]+ \bar{\mathbf{a}}_{k+1} T_...
...{ \bar{\mathbf{a}}_{k+1}
 T_{k}^T Y_{k} \bar{\mathbf{a}}_{k+1}^T +a_{k+1,l+1}}.$    

Similarly like in Section 3 one can prove non zeroness of the denominator in the equation for $ \alpha_{k+1}$. The relations for $ \mathbf{\alpha}_{k+1}$ and $ Z_{k+1}$ give us a recursive algorithm of complexity $ O(l^2n^2)$. We will further reduce this complexity by rewriting the calculation of $ T_k^T Y_k$ in a recursive manner, and by postponing the calculation of the solution matrix $ Y$.

Let us derive a recursive formula for the product $ T_k^T Y_k$:

$\displaystyle T_{k+1}^T Y_{k+1}$ $\displaystyle =$ $\displaystyle \left[ \begin{array}{c}
P^T T_k^T ,
\left[ \begin{array}{c}
0 \ ...
...t]
\left[ \begin{array}{c}
Z_{k+1}\\
\mathbf{\alpha}_{k+1}
\end{array} \right]$  
  $\displaystyle =$ $\displaystyle P^T T_k^T Y_k (P + \bar{\mathbf{a}}_{k+1}^T \mathbf{\alpha}_{k+1}...
...egin{array}{c}
0 \\
\vdots\\
0\\
1\end{array} \right] \mathbf{\alpha}_{k+1}.$  

Using this relation we can write the product $ T_{k+1}^T Y_{k+1}$ in terms of the product of the previous step $ T_k^T Y_k$. The updating of the product in every step takes now a number of operations independent of $ k$.

The last important resources taking computation is the calculation of the vector $ Z_k$ and hence $ Y_k$ in every step. If we store however the vectors $ \mathbf{\alpha}_k$ for every $ k$ we can compute this vector in an easy manner, similarly as for the higher order semiseparable case:

$\displaystyle Y=
 \left[ \begin{array}{c}
 \mathbf{\alpha}_{1}\left(P+\bar{\mat...
...{n}^T \mathbf{\alpha}_{n}\right) \ 
 \mathbf{\alpha}_{n}
 \end{array} \right].$    

Constructing the solution matrix $ Y$ from bottom to top costs now $ O(l^2n)$ instead of $ O(l^2n^2)$. The overall algorithm has therefore a complexity of $ O(l^2n)$.

Raf Vandebril 2005-04-26