Symbolic Algorithm for Solving SLAEs with Heptadiagonal Coefficient Matrices
Milena Veneva, Alexander Ayriyan

TL;DR
This paper introduces a symbolic algorithm specifically designed for solving systems of linear equations with heptadiagonal matrices, including a stability condition theorem, advancing computational methods for such structured matrices.
Contribution
The paper presents a novel symbolic algorithm for heptadiagonal SLAEs and provides a proven stability condition, enhancing solution techniques for structured band matrices.
Findings
Algorithm successfully solves heptadiagonal SLAEs
Stability condition theorem established and proven
Potential for improved computational efficiency
Abstract
This paper presents a symbolic algorithm for solving band matrix systems of linear algebraic equations with heptadiagonal coefficient matrices. The algorithm is given in pseudocode. A theorem which gives the condition for the algorithm to be stable is formulated and proven.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Symbolic Algorithm for Solving SLAEs with Heptadiagonal
Coefficient Matrices
Milena Veneva [email protected] Joint Institute for Nuclear Research, Laboratory of Information Technologies, Joliot-Curie 6, 141980 Dubna, Moscow region, Russia
Alexander Ayriyan [email protected] Joint Institute for Nuclear Research, Laboratory of Information Technologies, Joliot-Curie 6, 141980 Dubna, Moscow region, Russia
Abstract
This paper presents a symbolic algorithm for solving band matrix systems of linear algebraic equations with heptadiagonal coefficient matrices. The algorithm is given in pseudocode. A theorem which gives the condition for the algorithm to be stable is formulated and proven.
1 Introduction
Systems of linear algebraic equations (SLAEs) with heptadiagonal coefficient matrices may arise after many different scientific and engineering problems, as well as problems of the computational linear algebra where finding the solution of a SLAE is considered to be one of the most important problems. For instance, a semi-implicit formulation for the discretization of the transient terms of the system of partial differential equations (PDEs) which models a multiphase fluid flow in porous media yields to a heptadiagonal system of pressure equations for each time step (see [1]). On the other hand, in [2] the 3D problem, simulating the incompressible blood flow in arteries with a structured mesh domain leads to a heptadiagonal SLAE.
A whole branch of symbolic algorithms for solving systems of linear algebraic equations with different coefficient matrices exists in the literature. [3] considers a tridiagonal matrix and a symbolic version of the Thomas method [4] is formulated. The authors of [5] build an algorithm in the case of a general bordered tridiagonal SLAE, while in [6] the coefficient matrix taken into consideration is a general opposite-bordered tridiagonal one. A pentadiagonal coefficient matrix is of interest in [7], while a cyclic pentadiagonal coefficient matrix is considered in [8]. The latter algorithm can be applied to periodic tridiagonal and periodic pentadiagonal SLAE either by setting the corresponding matrix terms to be zero.
A performance analysis of effective methods (both numerical and symbolic) for solving band matrix SLAEs (with three and five diagonals) being implemented in C++ and run on modern (as of 2018) computer systems is made by us in [9]. Different strategies (symbolic included) for solving band matrix SLAEs (with three and five diagonals) are explored by us in [11]. A performance analysis of effective symbolic algorithms for solving band matrix SLAEs with coefficient matrices with three, five and seven diagonals being implemented in both C++ and Python and run on modern (as of 2018) computer systems is made by us in [10]. Note that the algorithm for solving a SLAE with a heptadiagonal coefficient matrix considered in [10] is the one that is going to be introduced in the next Section.
After obtaining the algorithm independently, it has been found in the article [12] where it is applied for cyclic heptadiagonal SLAEs. Thus, we do not claim out priority to this algorithm. However, the novelties of this work are as follows: pure heptadiagonality, proved necessary requirements, classical Thomas expressions i. e. the algorithm’s formalism follows the form of expressions that are usually used in the Thomas algorithm for tridiagonal SLAE [4], that is, the solution is searched in the form: .
2 The Algorithm
Let us consider a SLAE , where is a heptadiagonal matrix,
, and are vectors of length :
[TABLE]
A symbolic algorithm for solving SLAEs with a heptadiagonal coefficient matrix is considered. It is based on LU decomposition in which the system is rewritten as , where and are a lower triangular and an upper triangular matrices, respectively. The algorithm consists of two steps – the decomposition together with the downwards sweep happen during the first step, leading us from to , while the upwards sweep (solving for ) is done during the second step.
Remark: seems that the expression for is missing in the for loop on p. 435 of [12]. Also, the expression for on p. 435 of the same paper is not used anywhere, so it is probably a leftover from a previous algorithm.
Now we shall formulate a symbolic algorithm for solving such a SLAE.
Algorithm 1. Symbolic algorithm for solving a SLAE .
1:
2:
3:if then
4: Exit.
5:end if
6:bool flag = False
7: Step 1.(0)
8:if then
9: symb; flag = True
10:end if
11:
12: (1)
13:if !flag then
14: if then
15: symb; flag = True
16: end if
17:end if
18:
19: (2)
20:if !flag then
21: if then
22: symb; flag = True
23: end if
24:end if
25:
26:
27:
28:for do ()
29:
30:
31:
32: if !flag then
33: if then
34: symb; flag = True
35: end if
36: end if
37:
38:
39:end for
40: ()
41:
42:
43:if !flag then
44: if then
45: symb; flag = True
46: end if
47:end if
48:
49:
50:
51: ()
52:
53:
54:if !flag then
55: if then
56: symb; flag = True
57: end if
58:end if
59:
60:
61: ()
62:
63:
64:if !flag then
65: if then
66: symb; flag = True
67: end if
68:end if
69:
70: Step 2. Solution
71:
72:
73:for do
74:
75:end for
76:Cancel the common factors in the numerators and denominators of , making them coprime. Substitute in and simplify.
Remark: If any expression has been evaluated to be zero or numerically zero, then it is assigned to be a symbolic variable. We cannot compare any of the next expressions with , because any further is going to be a symbolic expression. To that reason, we use a boolean flag which tells us if any previous is a symbolic expression. In that case, comparison with is not conducted as being not needed.
3 Stability of the Algorithm
Some observations on the stability of the proposed algorithm can be made. Firstly, assigning to be equal to a symbolic variable in case it is zero or numerically zero, ensures correctness of the formulae for computing the solution of the considered SLAE. This action does not add any additional requirements to the coefficient matrix, except:
Theorem 1**.**
The only requirement to the coefficient matrix so as the algorithm to be stable is nonsingularity.
Proof.
As a direct consequence of the transformations done so as the matrix to be factorized and then the downwards sweep to be conducted, it follows that the determinant of the matrix in the terms of the introduced notation is:
[TABLE]
(This formula could be used so as the nonsingularity of the coefficient matrix to be checked.) If for any is assigned to be equal to a symbolic variable, then it is going to appear in both the numerator and the denominator of the expression for the determinant and so it can be cancelled:
[TABLE]
where is the -th leading principal minor, and . This means that the only constraint on the coefficient matrix is . ∎
The requirement on the coefficient matrix to be nonsingular is not limiting at all since this is a standard requirement so as the SLAE to have one solution only.
Acknowledgements
The work is partially supported by the Russian Foundation for Basic Research under project #18-51-18005.
4 Conclusions
A symbolic algorithm for solving band matrix SLAEs with heptadiagonal coefficient matrices was presented in pseudocode. Some notes on the stability of the algorithm were made.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Kim J.G., Park H.W. Advanced Simulation Technique for Modeling Multiphase Fluid Flow in Porous Media. In: Laganá A., Gavrilova M.L., Kumar V., Mun Y., Tan C.J.K., Gervasi O. et al. Computational Science and Its Applications – ICCSA 2004. ICCSA 2004. Lecture Notes in Computer Science, 2004, 3044 . Springer, Berlin, Heidelberg, pp. 1 – 9, doi: 10.1007/978-3-540-24709-8_1.
- 2[2] Duran A., Celebi M.S., Piskin S. et al. Scalability of Open FOAM for bio-medical flow simulations. The Journal of Supercomputing, 2015, 71 , pp. 938 – 951, doi: 10.1007/s 11227-014-1344-1.
- 3[3] El-Mikkawy, M. A Generalized symbolic Thomas algorithm. Applied Mathematics, 2012, 3 , 4, pp. 342 – 345, doi: 10.4236/am.2012.34052.
- 4[4] Higham N. J. Accuracy and Stability of Numerical Algorithms. SIAM, 2nd edn, 2002, pp. 174 – 176.
- 5[5] Karawia A. A., Rizvi Q. M. On solving a general bordered tridiagonal linear system. International Journal of Mathematical Sciences, 2013, 33 , 2.
- 6[6] Atlan F., El-Mikkawy M. A new symbolic algorithm for solving general opposite-bordered tridiagonal linear systems. American Journal of Computational Mathematics, 2015, 5 , pp. 258 – 266, doi: 10.4236/ajcm.2015.53023.
- 7[7] Askar S. S., Karawia A. A. On solving pentadiagonal linear systems via transformations. Mathematical Problems in Engineering. Hindawi Publishing Corporation, 2015 2015 , 9, doi: 10.1155/2015/232456.
- 8[8] Jia J.-T., Jiang Y.-L. Symbolic algorithm for solving cyclic penta-diagonal linear systems. Numerical Algorithms, 2012, 63 , 2, pp. 357 – 367, doi: 10.1007/s 11075-012-9626-2.
