This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

Efficient Computation for Invertibility Sequence of Banded Toeplitz Matrices

Chen Wang 2120220677@mail.nankai.edu.cn Chao Wang wangchao@nankai.edu.cn Address: College of Software, Nankai University, Tianjin 300350, China
Abstract

When solving systems of banded Toeplitz equations or calculating their inverses, it is necessary to determine the invertibility of the matrices beforehand. In this paper, we equate the invertibility of an nn-order banded Toeplitz matrix with bandwidth 2k+12k+1 to that of a small kkk*k matrix. By utilizing a specially designed algorithm, we compute the invertibility sequence of a class of banded Toeplitz matrices with a time complexity of 5k2n/2+kn5k^{2}n/2+kn and a space complexity of 3k23k^{2} where nn is the size of the largest matrix. This enables efficient preprocessing when solving equation systems and inverses of banded Toeplitz matrices.

keywords:
banded Toeplitz matrix , invertibility sequence , computational complexity

1 Introduction and preliminaries

An nn-order banded Toeplitz matrix with bandwidth 2k+12k+1 takes the form:

Mn=[x0xk00xk00xk00xkx0]nn.M_{n}=\begin{bmatrix}x_{0}&\cdots&x_{k}&0&\cdots&0\\ \vdots&\ddots&&\ddots&\ddots&\vdots\\ x_{-k}&&\ddots&&\ddots&0\\ 0&\ddots&&\ddots&&x_{k}\\ \vdots&\ddots&\ddots&&\ddots&\vdots\\ 0&\cdots&0&x_{-k}&\cdots&x_{0}\par\end{bmatrix}_{n*n}. (1)

Banded Toeplitz matrices, as transition matrices for convolutions, frequently appear in the numerical solutions of partial differential equations using finite difference methods, finite element methods, and spectral methods [1, 2, 14]. They can be applied in the mathematical representation of high-dimensional nonlinear electromagnetic interference signals [13, 16].

Currently, the majority of computations on banded Toeplitz matrices, including solving equation systems [9, 10] and inverses [3, 11, 17], require that the banded Toeplitz matrices are non-singular, meaning the determination of their invertibility is necessary. At present, most methods determine the invertibility by calculating determinants [4, 6, 7, 8, 15]. This leads to computational waste because we are not concerned with the specific value of their determinants.

Based on the reasons mentioned above, we propose a rapid determination method for the invertibility of banded Toeplitz matrices. We equate the invertibility of an nn-order banded Toeplitz matrix with bandwidth 2k+12k+1 to that of a small kkk*k matrix and introduce a new algorithm, which can solve the invertibility sequence of a class of banded Toeplitz matrices with time complexity 5k2n/2+kn5k^{2}n/2+kn and space complexity 3k23k^{2} where nn is the size of the largest matrix. Additionally, while most other studies focus on tridiagonal or pentadiagonal Toeplitz matrices, our algorithm is compatible with larger values of kk. This enables efficient preprocessing when solving equation systems and inverses of banded Toeplitz matrices. Since the invertibility of banded Toeplitz matrices over finite fields is equivalent to the reversibility of one-dimensional null-boundary linear cellular automata [12], we compare our determination algorithm with the latest equivalent invertibility determination algorithms in cellular automata [5]. The results show that our algorithm has significant efficiency advantages.

Table 1: Comparison of complexity with equivalent algorithm
algorithm time complexity
SBP [5] O(k3n)O(k^{3}n)
ours 5k2n/2+kn5k^{2}n/2+kn

This paper consists of three sections. The second section presents the main theorem and algorithm of this paper. The third section summarizes the work of the entire paper.

2 Invertibility of banded Toeplitz matrices

The invertibility of a matrix is a simpler problem than the determinant, so we aim to completely compute the invertibility sequence for a class of banded Toeplitz matrices:

Definition 1.

The invertibility sequence is a binary sequence of length nn where the ii-th number indicates whether the ii-th order banded Toeplitz matrix is invertible.

Next, we will begin our calculations, assuming the bandwidth is 2k+12k+1. Consider the following sequence:

vi,j(kin+k,1jk)={0 for ik and ij1 for i=j(xk1vi1,j+xk2vi2,j++xkvi2k,j)/xk for i>k.v_{i,j}\ (-k\leq i\leq n+k,1\leq j\leq k)=\begin{cases}0&\text{ for }i\leq k\text{ and }i\neq j\\ 1&\text{ for }i=j\\ -(x_{k-1}v_{i-1,j}+x_{k-2}v_{i-2,j}+\cdots+x_{-k}v_{i-2k,j})/x_{k}&\text{ for }i>k\end{cases}. (2)

Let WiW_{i} be a kkk*k matrix, with its elements as described in Eq. 3.

Wi=[vi+1,1vi+1,2vi+1,kvi+2,1vi+2,2vi+2,kvi+k,1vi+k,2vi+k,k].W_{i}=\begin{bmatrix}v_{i+1,1}&v_{i+1,2}&\cdots&v_{i+1,k}\\ v_{i+2,1}&v_{i+2,2}&\cdots&v_{i+2,k}\\ \vdots&\vdots&\ddots&\vdots\\ v_{i+k,1}&v_{i+k,2}&\cdots&v_{i+k,k}\end{bmatrix}. (3)

We have the following important theorem:

Theorem 1.

An nn-order banded Toeplitz matrix MnM_{n} with bandwidth 2k+12k+1 (n>kn>k) is invertible if and only if WnW_{n} is invertible.

Proof.

Let matrices PP and QQ be defined as follows:

P=QWn=[xk00xk1xk0x1x2xk][vn+1,1vn+1,2vn+1,kvn+2,1vn+2,2vn+2,kvn+k,1vn+k,2vn+k,k].P=QW_{n}=\begin{bmatrix}-x_{k}&0&\cdots&0\\ -x_{k-1}&-x_{k}&\cdots&0\\ \vdots&\vdots&\ddots&\vdots\\ -x_{1}&-x_{2}&\cdots&-x_{k}\end{bmatrix}\begin{bmatrix}v_{n+1,1}&v_{n+1,2}&\cdots&v_{n+1,k}\\ v_{n+2,1}&v_{n+2,2}&\cdots&v_{n+2,k}\\ \vdots&\vdots&\ddots&\vdots\\ v_{n+k,1}&v_{n+k,2}&\cdots&v_{n+k,k}\end{bmatrix}. (4)

We have the following equation, where IkI_{k} is the nn-order identity matrix.

Mn[Ik\hdashlinevk+1,1vk+1,kvn,1vn,k]=[O(nk)k\hdashlinePkk].M_{n}\left[\begin{array}[]{ccc}&&\\ &I_{k}&\\ &&\\ \hdashline v_{k+1,1}&\cdots&v_{k+1,k}\\ \vdots&\ddots&\vdots\\ v_{n,1}&\cdots&v_{n,k}\\ \end{array}\right]=\left[\begin{array}[]{ccc}&&\\ &O_{(n-k)*k}&\\ &&\\ \hdashline&&\\ &P_{k*k}&\\ &&\\ \end{array}\right]. (5)

First, we prove the necessity: if MnM_{n} is an invertible matrix, then when it is multiplied by a column full-rank matrix, the result is a column full-rank matrix. The rank of PP is kk, so PP is invertible.

Next, we prove the sufficiency: if WnW_{n} is invertible, then PP is also invertible. Multiplying both sides of the Eq. 5 by P1P^{-1} on the right, there exist kk vectors Unk+1,Unk+2,UnU_{n-k+1},U_{n-k+2},\cdots U_{n} that make:

Mn[Unk+1,Unk+2,,Un]=|0Ik|,M_{n}[U_{n-k+1},U_{n-k+2},\cdots,U_{n}]=\left|\begin{array}[]{ccc}0\\ \hline\cr I_{k}\\ \end{array}\right|, (6)

At this point, we can construct a unique matrix U=[U1,U2,,UnU=[U_{1},U_{2},\cdots,U_{n}] such that MnU=InM_{n}U=I_{n}, where for i>ni>n, Ui=0U_{i}=0 and EiE_{i} is the vector of order ii of the canonical basis of 𝕂n\mathbb{K}^{n}.

Ui=(Eikxk+1Ui+1xk+2Ui+2xkUi+2k)/xk.U_{i}=(E_{i-k}-x_{-k+1}U_{i+1}-x_{-k+2}U_{i+2}-\cdots-x_{k}U_{i+2k})/x_{-k}. (7)

We have equated the invertibility of a banded Toeplitz matrix with bandwidth 2k+12k+1 to the invertibility of a small kkk*k matrix, which significantly enhances our computational efficiency.

Corollary 1.

The invertibility sequence of tridiagonal Toeplitz matrices can be calculated with a time complexity of 3n3n.

Proof.

In this case, k=1k=1, which means the invertibility determining matrix WW consists of a single element. We only need to determine whether it is zero. The cost of calculating W1W_{1} to WnW_{n} using Eq. 2 is 3n3n. ∎

Corollary 2.

The invertibility sequence of pentadiagonal Toeplitz matrices can be calculated with a time complexity of 11n11n.

Proof.

In this case, k=2k=2, which means the invertibility determining matrix WW is a 222*2 matrix. We only need to determine if the ratio of the two elements in each row of WW is equal to that in the next row, which costs nn. The cost of calculating W1W_{1} to WnW_{n} using Eq. 2 is 10n10n. Therefore, the total cost is 11n11n. ∎

Corollary 3.

The invertibility sequence of (2k+1)(2k+1)-diagonal Toeplitz matrices can be calculated with time complexity 5k2n/2+kn5k^{2}n/2+kn and space complexity 3k23k^{2}.

Proof.

Calculating the invertibility sequence for banded Toeplitz matrices involves determining the invertibility of W1,W2,WnW_{1},W_{2},\cdots W_{n}, where each WW is a kkk*k matrix. If Gaussian elimination is used for each matrix to row-echelon form, the time complexity could reach O(k3n)O(k^{3}n). Since k1k-1 rows are the same between WiW_{i} and Wi+1W_{i+1}, this means that the computations performed on WiW_{i} can be utilized for Wi+1W_{i+1}. This reuse of calculations can optimize the overall process and reduce the computational cost.

Consider the initial situation, set W0=Y0=IW_{0}=Y_{0}=I, where II is the identity matrix, a row-echelon form of a full-rank matrix. By removing the first row of W0W_{0} and adding the bottom row of W1W_{1}, a new matrix Y1Y_{1} is formed. It can be seen that the invertibility of W1W_{1} and Y1Y_{1} is the same. At this point, the first k1k-1 rows of Y1Y_{1} are quasi-row-echelon which can be transformed into row-echelon form through row swapping. Assuming that index[a]index[a] is the index of the first non-zero element from the left in the aa-th row of each YY, there are two scenarios:

  • 1.

    If i,1ik\forall i\in\mathbb{Z},1\leq i\leq k, index[k]index[i]index[k]\neq index[i], this indicates that YiY_{i} is quasi-row-echelon. In this scenario, we can quickly determine the invertibility of Y1Y_{1}, whether there exists a row that is entirely zero.

  • 2.

    If i,1ik\exists i\in\mathbb{Z},1\leq i\leq k, index[k]=index[i]index[k]=index[i], then use the kk-th row to perform Gaussian elimination on the ii-th row (k>ik>i). After Gaussian elimination, index[i]index[i] will grow and be updated. If at this point, j,1jk\exists j\in\mathbb{Z},1\leq j\leq k, index[j]=index[i]index[j]=index[i], then use the lower row to perform Gaussian elimination on the upper one. Continue this process until Y1Y_{1} achieves a quasi-row-echelon form. Then, we can quickly determine the invertibility of Y1Y_{1}.

Data: vector X=[xk,,x0,,xk]X=[x_{-k},\cdots,x_{0},\cdots,x_{k}] and the size nn of the largest matrix
Result: invertibility sequence RR
// Step1: initialize W0W_{0} and Y0Y_{0}
1 for i=1i=1;iki\leq k;i++i++ do
2       for j=1j=1;j2kj\leq 2k;j++j++ do
3             if j=i+kj=i+k then
4                   W[j][i]=1W[j][i]=1;
5                  
6            else
7                   W[j][i]=0W[j][i]=0;
8                  
9             end if
10            
11       end for
12      for j=1j=1;jkj\leq k;j++j++ do
13             if j=i+kj=i+k then
14                   Y[j][i]=1Y[j][i]=1;
15                  
16            else
17                   Y[j][i]=0Y[j][i]=0;
18                  
19             end if
20            
21       end for
      // index[i]index[i] is the index of the first non-zero element from the left in the ii-th row of YY
22       index[i]=iindex[i]=i;
23 end for
24for i=1i=1;ini\leq n;i++i++ do
       // Step2: generate WiW_{i} and YiY_{i}
25       for j=1j=1;jkj\leq k;j++j++ do
26             W[imod2k][j]=(xk1W[(i1+2k)mod2k][j]+xk2W[(i2+2k)mod2k][j]++xkW[(i+1)mod2k][j])/xkW[i\mod 2k][j]=-(x_{k-1}W[(i-1+2k)\mod 2k][j]+x_{k-2}W[(i-2+2k)\mod 2k][j]+\cdots+x_{-k}W[(i+1)\mod 2k][j])/x_{k};
27             Y[imodk][j]=W[imod2k][j]Y[i\mod k][j]=W[i\mod 2k][j];
28            
29       end for
30      update index[imodk]index[i\mod k];
31       cur=imodkcur=i\mod k;
       // Step3: Gaussian elimination
32       while l,index[l]=index[cur]\exists l,index[l]=index[cur] do
33             if l<cur(imodn)l<cur\leq(i\mod n) or (imodn)l<cur(i\mod n)\geq l<cur or l>(imodn)l>(i\mod n), cur(imodn)cur\leq(i\mod n) then
34                   exchange ll and curcur;
35                  
36             end if
37            use Y[l]Y[l] to perform Gaussian elimination on Y[cur]Y[cur];
38             update index[cur]index[cur];
39            
40       end while
41      if l\exists l, index[l]=0index[l]=0 then
42             R[i]=0R[i]=0;
43            
44      else
45             R[i]=1R[i]=1;
46            
47       end if
48      
49 end for
50return R;
Algorithm 1 calculation for the invertibility sequence of banded Toeplitz matrices

We continuously remove the first row of YiY_{i} and add the last row of Wi+1W_{i+1} to construct Yi+1Y_{i+1}. Since the first k1k-1 rows of Yi+1Y_{i+1} are already in quasi-row-echelon form, we need at most kk Gaussian eliminations to transform Yi+1Y_{i+1} into quasi-row-echelon form, rather than k2k^{2} eliminations. Since we always use the larger-index rows to perform Gaussian elimination on the small-index ones during the Gaussian elimination, the jj-th row of Yi+1Y_{i+1} is only linearly expressed by the jj-th to kk-th rows of Wi+1W_{i+1}. Therefore, when we use Wi+1W_{i+1} and YiY_{i} to construct Yi+1Y_{i+1}, we can remove the first row of YiY_{i} and ensure that Yi+1Y_{i+1} and Wi+1W_{i+1} have the same invertibility, as shown in Eq. 8, where VlV_{l} is the ll-th row of WiW_{i} and function LL represents linear combination.

Wi=[V1V2Vk],Yi=[L(V1,V2,V3,,Vk)L(V2,V3,,Vk)Vk].W_{i}=\begin{bmatrix}V_{1}\\ V_{2}\\ \vdots\\ V_{k}\end{bmatrix},Y_{i}=\begin{bmatrix}L(V_{1},V_{2},V_{3},\cdots,V_{k})\\ L(V_{2},V_{3},\cdots,V_{k})\\ \vdots\\ V_{k}\end{bmatrix}. (8)

Algorithm 1 shows the calculations in detail.

The time cost analysis of this algorithm is as follows:

  • 1.

    Step 1 (lines 1 to 17) is for initialization and involves no computation.

  • 2.

    Step 2 (lines 19 to 24) calculates each element with a time cost of 2k+12k+1. Since there are knkn elements, the total time cost for this step is 2k2n+kn2k^{2}n+kn.

  • 3.

    Step 3 (lines 25 to 36) requires at most kk Gaussian eliminations to transform each YY into quasi-row-echelon form, with a time cost of kk for each cycle. As this while-loop is repeated nn times, the total cost for this step is k2n/2k^{2}n/2.

In summary, the total time cost of the program is 5k2n/2+kn5k^{2}n/2+kn. This algorithm is more space-efficient: the size of WW is 2kk2k*k, and the size of YY is kkk*k, therefore, the total space consumption of the algorithm is only 3k23k^{2}.

Relying on Theorem 1 and Algorithm 1, we will be able to efficiently solve the invertibility of a class of banded Toeplitz matrices, providing a foundation for efficiently batch processing this class of banded Toeplitz matrices.

3 Conclusion

We equate the invertibility of an nn-order banded Toeplitz matrix with bandwidth 2k+12k+1 to that of a small kkk*k matrix. This allows us to calculate the invertibility sequence of a class of banded Toeplitz matrices with a time complexity of 5k2n/2+kn5k^{2}n/2+kn. This algorithm can be applied in solving equation systems and inverses of banded Toeplitz matrices.

Acknowledgments

This study is financed by Tianjin Science and Technology Bureau, finance code: 21JCYBJC00210.

Declaration of generative AI

Generative AI is only used for translation and language polishing in this paper.

References

  • Aceto et al. [2012a] Aceto, L., Ghelardoni, P., Magherini, C., 2012a. Boundary value methods for the reconstruction of sturm–liouville potentials. Applied Mathematics and Computation 219, 2960–2974. URL: https://www.sciencedirect.com/science/article/pii/S0096300312009204, doi:https://doi.org/10.1016/j.amc.2012.09.021.
  • Aceto et al. [2012b] Aceto, L., Ghelardoni, P., Magherini, C., 2012b. Pgscm: A family of p-stable boundary value methods for second-order initial value problems. Journal of Computational and Applied Mathematics 236, 3857–3868. URL: https://www.sciencedirect.com/science/article/pii/S0377042712001525, doi:https://doi.org/10.1016/j.cam.2012.03.024. 40 years of numerical analysis: “Is the discrete world an approximation of the continuous one or is it the other way around?”.
  • Arslan et al. [2013] Arslan, S., Köken, F., Bozkurt, D., 2013. Positive integer powers and inverse for one type of even order symmetric pentadiagonal matrices. Applied Mathematics and Computation 219, 5241–5248.
  • Cinkir [2014] Cinkir, Z., 2014. A fast elementary algorithm for computing the determinant of toeplitz matrices. Journal of computational and applied mathematics 255, 353–361.
  • Du et al. [2022] Du, X., Wang, C., Wang, T., Gao, Z., 2022. Efficient methods with polynomial complexity to determine the reversibility of general 1d linear cellular automata over zp. Information Sciences 594, 163–176.
  • Jia et al. [2016] Jia, J., Yang, B., Li, S., 2016. On a homogeneous recurrence relation for the determinants of general pentadiagonal toeplitz matrices. Computers & Mathematics with Applications 71, 1036–1044.
  • Jia and Wang [2023] Jia, J.T., Wang, F.R., 2023. A cost-efficient numerical algorithm for the determinants of heptadiagonal matrices with toeplitz structure. Journal of Mathematical Chemistry 61, 1275–1291.
  • Kilic and El-Mikkawy [2008] Kilic, E., El-Mikkawy, M., 2008. A computational algorithm for special nth-order pentadiagonal toeplitz determinants. Applied mathematics and computation 199, 820–822.
  • Kumar [1985] Kumar, R., 1985. A fast algorithm for solving a toeplitz system of equations. IEEE transactions on acoustics, speech, and signal processing 33, 254–267.
  • Liu et al. [2020] Liu, Z., Li, S., Yin, Y., Zhang, Y., 2020. Fast solvers for tridiagonal toeplitz linear systems. Computational and Applied Mathematics 39, 1–10.
  • Lv et al. [2008] Lv, X.G., Huang, T.Z., Le, J., 2008. A note on computing the inverse and the determinant of a pentadiagonal toeplitz matrix. Applied Mathematics and Computation 206, 327–331.
  • Martı´n del Rey and Rodrı´guez Sánchez [2011] Martı´n del Rey, A., Rodrı´guez Sánchez, G., 2011. Reversibility of linear cellular automata. Applied Mathematics and Computation 217, 8360–8366. URL: https://www.sciencedirect.com/science/article/pii/S0096300311003997, doi:https://doi.org/10.1016/j.amc.2011.03.033.
  • Patil and Swamy [2008] Patil, P.G., Swamy, Y., 2008. An eficient model for vibration control by piezoelectric smart structure using finite element method. Eur. J. Comput. Sci. Netw. Secu 8, 258–264.
  • Poletti and Teal [2021] Poletti, M.A., Teal, P.D., 2021. A superfast toeplitz matrix inversion method for single-and multi-channel inverse filters and its application to room equalization. IEEE/ACM Transactions on Audio, Speech, and Language Processing 29, 3144–3157.
  • Talibi et al. [2018] Talibi, B., Hadj, D., Sarsri, D., 2018. A numerical algorithm for computing the inverse of a toeplitz pentadiagonal matrix. Journal of Applied Mathematics and Computational Mechanics 17.
  • Tang [2006] Tang, T., 2006. Spectral and high-order methods with applications. Science Press Beijing.
  • Wang et al. [2015] Wang, C., Li, H., Zhao, D., 2015. An explicit formula for the inverse of a pentadiagonal toeplitz matrix. Journal of Computational and Applied Mathematics 278, 12–18.