Implementation and Performance Analysis of a Parallel Oil Reservoir Simulator Tool Using a CG Method on a GPU-Based System

Total Page:16

File Type:pdf, Size:1020Kb

Implementation and Performance Analysis of a Parallel Oil Reservoir Simulator Tool Using a CG Method on a GPU-Based System 2014 UKSim-AMSS 16th International Conference on Computer Modelling and Simulation Implementation and Performance Analysis of a Parallel Oil Reservoir Simulator Tool using a CG Method on a GPU-Based System Leila Ismail Jamal Abou-Kassem Bibrak Qamar Computer and Software Engineering/ Department of Chemical and Petroleum HPGCL Research Lab HPGCL Research Lab Engineering College of IT College of IT College of Engineering UAE University UAE University UAE University Al-Ain, UAE Al-Ain, UAE Al-Ain, UAE Email: [email protected] (Correspondence Email: [email protected] Author) 978-1-4799-4923-6/14 $31.00 © 2014 IEEE 374 DOI 10.1109/UKSim.2014.113 described in section IV. Our experiments and analysis of The above formula is the transmissibility in the x-direction results are presented in section V. Finally, VI concludes our where μ is the viscosity, B is the formation volume factor, work. Δx is the dimension of a grid block in the x-direction, Ax is the area of a grid block (y-dimension * height), Kx is the II. OVERALL IMPLEMENTATION OF THE OIL RESERVOIR permeability in the x-direction and βc is the transmissibility SIMULATOR conversion factor. Based on the values computed for the transmissibility and the production rates of the wells, the simulator then generates the system Ax = d, where A is the coefficient matrix, x is the solution vector for the value of pressure in each grid block of the reservoir and d is is a known vector which represents the right hand side of the generated system of equations. The system Ax = d is generated using the following formula for each grid block, at the time step n +1: n+1 n+1 n+1 n Tln (pl − pn ) − γl,n(Zl − Zn) + l∈ϕn (qn+1 + qn+1)= scl,n scn l∈ n V φS n+1 φS n bn − αcΔt B n B n (2) T q where is the transmissibility, scl,n is the flow from l n q boundary block to block , scn is the well production rate at block n, γ is gravity and Z is the elevation, V is the bulk volume of the block n, S is the saturation and φ is the porosity, and Δt is the time step. In our implementation, A and d are offloaded to the GPU memory and the solution vector x which contains the pressure at each grid block is offload only once to the GPU memory, since afterwards x is updated in GPU memory for consecutive simulator time steps. Once A, x and d are in the GPU memory, the simulator launches the solver (CG) Figure 1. Oil Reservoir Simulator Algorithm. at the GPU for the calculation of the pressure for the next time step at each grid block of the reservoir. Figure 1 shows the flow chart representing our implemen- When the calculation of the new pressure for each grid tation of the oil reservoir simulator. block at the GPU level is completed, the vector x is The simulator first reads from an input data file the transferred from the GPU memory to the CPU memory to characteristics of the reservoir to be modeled. The charac- be used to update the matrix A and the vector d, which are teristics constitute of the followings: the size of reservoir, used for the next time step. the number of grid blocks and the dimensions of each grid III. RELATED WORKS block, the location of the wells and the production rates, the reservoir rock properties, the porosity, the permeability, the A. Prior Implementations of Conjugate Gradient the reservoir fluid properties, the formation volume factor, Several algorithms have been published to parallelize CG and the viscosity. [21], [22], [12], [15]. In references [21] and [22], algorithms The Transmissibility for each grid block is then computed have been implemented on a specialized event-driven multi- using the following formula: threaded platform. In references [12] and [15], algorithms have been implemented on a distributed shared memory AxKx cluster. Reference [23] introduces a parallel algorithm for Tx = βc (1) μBΔx matrix-vector multiplication, considers a particular matrix 375 with regular sparsity and studies the impact of mesh par- [13]. In this work, we use DIA format for the GPU parallel titioning on the performance. References [26] and [27] implementation, as the coefficient matrices generated in 1- introduce data decomposition strategies for matrix-vector D, 2-D and 3-D oil reservoirs are diagonals-based structured multiplications to increase CG efficiency on hypercubes and matrices with few zeros in diagonals. However, we use the meshes network for unstructured sparse matrices. Blocks of CSR format for the sequential CPU implementation, as it matrix are assigned to processors to perform partial result of gives better performance on CPU than GPU [13]. the matrix-vector multiplication. Non-zeros are transferred In DIA, every matrix is represented by 2 arrays: an array using storage techniques of non-zeros in a vector. They which stores the non-zero values of the diagonals and an concluded that the broadcast-based approach does not scale array which stores the offset of each diagonal from the main with increasing number of processors. By using an overlap diagonal. By convention, the offset for main diagonal is 0, mechanisms for global summation to hide communication while the offset for kth super-diagonal is k and the kth cost involved in the parallel CG, a speedup of 2.5 was sub-diagonal is -k. As the indices of rows and columns of obtained on 128 processors compared to the original NAS nonzero entries are not stored explicitly, they are implicitly parallel benchmark [19]. References [28] and [29] divide defined by their position within a diagonal and offset be- the overall CG algorithm into blocks of algorithms to tween diagonals. DIA format reduces the memory size for reduce communication, but did not address the cost of storing matrix and decreases the amount of memory transfers communication among the blocks. Jordan et al. Reference and provides coalesced memory access during sparse matrix- [24] reported experiments where matrix-vector multiplica- vector multiplication (SpMV) [13]. This makes DIA format tion loads are distributed based on processors speed in a appropriate in our case as GPUs have relatively less memory heterogeneous cluster, using a dense matrix. The parallel and perform poorly when memory is accessed irregularly algorithm suggested by Kim et al [11] explored the parallel [14]. CG with both Jacobi diagonal preconditioning and incom- plete Cholesky factorization preconditioning on a number of IV. PROGRAMMING MODEL different meshfree analysis applications. They investigated A. CG Algorithm the parallel performance of the solver using a homogeneous As shown in Figure 5, the CG method starts with a cluster and obtained a speedup of 12 compared to sequential random initial guess of the solution x0 (step1). Then, it execution in both cases, using 12 processors. proceeds by generating vector sequences of iterates (i.e., successive approximations to the solution (step10), residuals B. Sparse Matrix-Vector Multiplication corresponding to the iterates (step11), and search direc- Sparse matrices arise in different problems of scientific tions used in updating the iterates and residuals (step14). and engineering nature. They can range from a very well Although the length of these sequences can become large, structured to those which are highly irregular, where the only a small number of vectors need to be kept in mem- non-zero values in different rows do not follow a distribution ory. In every iteration of the method, two inner products pattern. Methods have been developed on the ways to store (insteps9and13) are performed in order to compute update the non-zero values of a sparse matrix to reduce memory scalars (steps9and13) that are defined to make the se- storage requirements. quences satisfy certain orthogonality conditions. On a sym- There are a large spectrum of sparse matrix representa- metric and positive definite linear system, these conditions tions, each with different storage requirements, computa- imply that the distance to the true solution is minimized in tional characteristics, and memory-access method. Different some norm (step12). storage formats have been introduced, and the DIA (diagonal format) was found to be suited for GPU implementations B. Matrix Structure when the nonzero values are restricted to a small number Figure 2 shows a computational mesh for a discretized of matrix diagonals [13], which is the case of the ma- 3-D oil reservoir, where Nx is the number of cells of trix generated by an oil reservoir simulator. However, the the oil reservoir in the x direction, Ny is the number of downsides of the DIA is that it allocates storage of values cells of the reservoir in the y direction and Nz is the which are not part of the matrix and explicitly stores zero number of cells of the reservoir in the z direction. N = values in occupied diagonals. We have then to introduce an NxNyNz is the generated matrix size. The mesh reveals extra information to differentiate between a zero value which the way the unknown vector is composed. By numbering comes from a diagonal and a zero value which comes from the unknowns, the outcoming linear system of equations the DIA mechanism. Coordinate format and compressed following a discretization is represented by a heptadiagonal sparse row format, such as CSR (Compressed Storage Row), structured sparse matrix. A 2-D computational mesh is a used for instance in reference [27], are general purpose simplified version of a 3-D computational mesh, where only format for storing the positions and the data of non-zero Nx and Ny are considered to produce the matrix.
Recommended publications
  • Spectral Properties of Anti-Heptadiagonal Persymmetric
    Spectral properties of anti-heptadiagonal persymmetric Hankel matrices Jo˜ao Lita da Silva1 Department of Mathematics and GeoBioTec Faculty of Sciences and Technology NOVA University of Lisbon Quinta da Torre, 2829-516 Caparica, Portugal Abstract In this paper we express the eigenvalues of anti-heptadiagonal persymmetric Hankel matrices as the zeros of explicit polynomials giving also a representation of its eigenvectors. We present also an expression depending on localizable parameters to compute its integer powers. In particular, an explicit formula not depending on any unknown parameter for the inverse of anti-heptadiagonal persymmetric Hankel matrices is provided. Key words: Anti-heptadiagonal matrix, Hankel matrix, eigenvalue, eigenvector, diagonalization 2010 Mathematics Subject Classification: 15A18, 15B05 1 Introduction The importance of Hankel matrices in computational mathematics and engineering is well-known. As a matter of fact, these type of matrices have not only a varied and numerous relations with polyno- mial computations (see, for instance, [2]) but also applications in engineering problems of system and control theory (see [4], [12] or [14] and the references therein). Recently, several authors have studied particular cases of these matrices in order to derive explicit expressions for its powers (see [7], [11], [16], [17], [19], [20] among others). The aim of this paper is to explore spectral properties of general anti-heptadiagonal persymmetric Hankel matrices, namely locating its eigenvalues and getting an explicit representation of its eigenvec- tors. Additionally, it is our purpose announce formulae for the computation of its integer powers using, thereunto, a diagonalization for the referred matrices. Particularly, an expression free of any unknown parameter to calculate the inverse of any anti-heptadiagonal persymmetric Hankel matrix (assuming arXiv:1907.00260v1 [math.RA] 29 Jun 2019 its nonsingularity) is made available.
    [Show full text]
  • Recursion Formulae for the Characteristic Polynomial of Symmetric Banded Matrices
    Recursion Formulae for the Characteristic Polynomial of Symmetric Banded Matrices Werner Kratz und Markus Tentler Preprint Series: 2007-15 Fakult¨at fur¨ Mathematik und Wirtschaftswissenschaften UNIVERSITAT¨ ULM Recursion Formulae for the Characteristic Polynomial of Symmetric Banded Matrices Werne Kratz und Markus Tentler Preprint Series: 2007-15 Fakult¨at fur¨ Mathematik und Wirtschaftswissenschaften UNIVERSITAT¨ ULM Recursion formulae for the characteristic polynomial of symmetric banded matrices Werner Kratz and Markus Tentler Abstract . In this article we treat the algebraic eigenvalue problem for real, symmetric, and banded matrices of size N × N , say. For symmetric, tridi- agonal matrices, there is a well-known two-term recursion to evaluate the characteristic polynomials of its principal submatrices. This recursion is of complexity O(N) and it requires additions and multiplications only. More- over, it is used as the basis for a numerical algorithm to compute particular eigenvalues of the matrix via bisection. We derive similar recursion formu- lae with the same complexity O(N) for symmetric matrices with arbitrary bandwidth, containing divisions. The main results are divisionfree recursions for penta- and heptadiagonal symmetric matrices. These recursions yield sim- ilarly as in the tridiagonal case effective (with complexity O(N) ), fast, and stable algorithms to compute their eigenvalues. Running head: Recursion formulae for banded matrices Key words: Banded matrix, eigenvalue problem, Sturm-Liouville equation, pentadiagonal matrix, heptadiagonal matrix, bisection method AMS subject classi¯cation: 15A18; 65F15, 15A15, 39A10, 15A24 W. Kratz and M. Tentler Universit¨atUlm Institut f¨urAngewandte Analysis D - 89069 Ulm, Germany e-mail: [email protected] e-mail: [email protected] Recursion formulae for the characteristic polynomial of symmetric banded matrices Werner Kratz and Markus Tentler 1 Introduction In this article we consider the algebraic eigenvalue problem for real, sym- metric, and banded matrices of size N × N , say.
    [Show full text]
  • RELATIONSHIPS BETWEEN the PERMANENTS of a CERTAIN TYPE of K-TRIDIAGONAL SYMMETRIC TOEPLITZ MATRIX and the CHEBYSHEV POLYNOMIALS
    Journal of Applied Mathematics and Computational Mechanics 2017, 16(1), 75-86 www.amcm.pcz.pl p-ISSN 2299-9965 DOI: 10.17512/jamcm.2017.1.07 e-ISSN 2353-0588 RELATIONSHIPS BETWEEN THE PERMANENTS OF A CERTAIN TYPE OF k-TRIDIAGONAL SYMMETRIC TOEPLITZ MATRIX AND THE CHEBYSHEV POLYNOMIALS 1 2 Ahmet Zahid Küçük , Murat Düz 1 Eskipazar Vocational School Turkey 2 Department of Mathematics Faculty of Science, Karabuk University Turkey [email protected], [email protected] Received: 16 December 2016; accepted: 13 March 2017 Abstract. In this study, the recursive relations between the permanents of a certain type of the k-tridiagonal symmetric Toeplitz matrix with complex entries and the Chebyshev polynomials of the second kind are presented. MSC 2010: 33C45 Keywords: permanent, Toeplitz matrix, k-tridiagonal matrix, Chebyshev polynomials, recurrence relation 1. Introduction A k-tridiagonal symmetric Toeplitz matrix can be written in the form (k ) T= t n ij n× n where a, i= j tij = bijk, − = . (1) 0 ,otherwise . The Toeplitz structured tridiagonal matrix family can be seen with many studies in different areas. Some of them include the solution of ordinary and partial differ- ential equations [1] in the applied mathematics, including the equilibrium problem [2] in the statistical physic, wireless and sensor network applications [3, 4] about control theory in computer sciences and the sensitivity of MRNA [5] in molecular biology. 76 A.Z. Küçük, M. Düz The aim of this study is to point out some relationships between the permanents of the certain type of k-tridiagonal symmetric Toeplitz matrix and the Chebyshev polynomials of the second kind.
    [Show full text]
  • Variational Reconstruction and GPU Ray-Casting of Non-Uniform Point Sets Using B-Spline Pyramids
    Variational Reconstruction and GPU Ray-Casting of Non-Uniform Point Sets using B-Spline Pyramids DIPLOMARBEIT zur Erlangung des akademischen Grades Diplom-Ingenieur im Rahmen des Studiums Computergraphik/Digitale Bildverarbeitung eingereicht von Martin Kinkelin Matrikelnummer 0326997 an der Fakultät für Informatik der Technischen Universität Wien Betreuung Betreuer: Prof. Dr. Eduard Gröller Mitwirkung: Dr. techn. Erald Vuçini Wien, 03.05.2011 (Unterschrift Verfasser) (Unterschrift Betreuer) Technische Universität Wien A-1040 Wien Karlsplatz 13 Tel. +43-1-58801-0 www.tuwien.ac.at i Abstract In this work, we focus on the problem of reconstructing a volume (scalar 3D field) based on non-uniform point samples and then rendering the volume by exploiting the processing power of GPUs. In the first part involving the reconstruction, we motivate our choice of tensor-product uniform B-splines for the discretized representation of the continuous volume. They al- low for highly efficient, scalable and accurate reconstruction at multiple scales (resolution levels) at once. By subdividing the volume into blocks and reconstructing them indepen- dently, current desktop PCs are able to reconstruct large volumes and multiple CPU cores can be efficiently exploited. We focus on linear and cubic B-splines and on how to eliminate otherwise resulting block discontinuities. Once we have reconstructed the volume at multiple scales, we can derive different Levels of Detail (LoDs) by subdividing the volume into blocks and selecting a suitable scale for each block. We present a fusion scheme which guarantees global C0 continuity for linear LoDs and C2 continuity for cubic ones. The challenge here is to minimize visual block interscale discontinuities.
    [Show full text]
  • Symbolic Algorithm for Solving Slaes with Heptadiagonal Coefficient
    http://mmg.tversu.ru ISSN 2311-1275 Mathematical Modelling M G M and Geometry Volume 6, No 3, pp. 22 { 29 (2018) doi:10.26456/mmg/2018-633 Symbolic Algorithm for Solving SLAEs with Heptadiagonal Coefficient Matrices Milena Veneva1;a and Alexander Ayriyan1;b 1 Joint Institute for Nuclear Research, Laboratory of Information Technologies, Joliot-Curie 6, 141980 Dubna, Moscow region, Russia e-mail: a [email protected], b [email protected] Received 27 November 2018. Published 19 December 2018. Abstract. This paper presents a symbolic algorithm for solving band matrix sy- stems 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. Keywords: systems of linear algebraic equations, heptadiagonal matrix, symbolic algorithm, LU factorization c The author(s) 2018. Published by Tver State University, Tver, Russia Symbolic Algorithm for Solving SLAEs 23 1. Introduction Systems of linear algebraic equations (SLAEs) with heptadiagonal coefficient ma- trices 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 incompres- sible blood flow in arteries with a structured mesh domain leads to a heptadiagonal SLAE.
    [Show full text]
  • On the Inverting of a General Heptadiagonal Matrix
    British Journal of Applied Science & Technology 18(5): 1-12, 2016; Article no.BJAST.31213 ISSN: 2231-0843, NLM ID: 101664541 SCIENCEDOMAIN international www.sciencedomain.org On the Inverting of a General Heptadiagonal Matrix ∗ A. A. Karawia1;2 1Mathematics Department, Faculty of Science, Mansoura University, Mansoura 35516, Egypt. 2Computer Science Unit, Deanship of Educational Services, Qassim University, P.O.Box 6595, Buraidah 51452, Saudi Arabia. Author’s contribution The sole author designed, analyzed and interpreted and prepared the manuscript. Article Information DOI: 10.9734/BJAST/2016/31213 Editor(s): (1) Orlando Manuel da Costa Gomes, Professor of Economics, Lisbon Accounting and Business School (ISCAL), Lisbon Polytechnic Institute, Portugal. Reviewers: (1) Jia Liu, University of West Florida, USA. (2) Hammad Khalil, University of Education (Attock Campus), Lahore, Pakistan. (3) Gerald Bourgeois, University of French Polynesia and University of Aix-Marseille, France. Complete Peer review History: http://www.sciencedomain.org/review-history/17657 Received: 26th December 2016 Accepted: 21st January 2017 Original Research Article Published: 28th January 2017 ABSTRACT In this paper, the author presents a new algorithm computing the inverse of any nonsingular heptadiagonal matrix. The computational cost of our algorithms is O(n2) operations in C. The algorithms are suitable for implementation using computer algebra system such as MAPLE, MATLAB and MATHEMATICA. Examples are given to illustrate the efficiency of the algorithms. Keywords: Heptadiagonal matrices; LU factorization; Determinants; Computer algebra systems(CAS). 2010 Mathematics Subject Classification: 15A15, 15A23, 68W30, 11Y05, 33F10, F.2.1, G.1.0. *Corresponding author: E-mail: [email protected]; Karawia; BJAST, 18(5), 1-12, 2016; Article no.BJAST.31213 1 INTRODUCTION The n × n general heptadiagonal matrices take the form: 0 1 d1 e1 f1 g1 B C B c2 d2 e2 f2 g2 C B C B b3 c3 d3 e3 f3 g3 0 C B C B a4 b4 c4 d4 e4 f4 g4 C B C B C B C B .
    [Show full text]
  • Preconditioned Iterative Solvers on GPU and an In-Situ Combustion Simulator
    University of Calgary PRISM: University of Calgary's Digital Repository Graduate Studies The Vault: Electronic Theses and Dissertations 2020-01 Preconditioned Iterative Solvers on GPU and an In-Situ Combustion Simulator Yang, Bo Yang, B. (2020). Preconditioned Iterative Solvers on GPU and an In-Situ Combustion Simulator (Unpublished doctoral thesis). University of Calgary, Calgary, AB. http://hdl.handle.net/1880/111505 doctoral thesis University of Calgary graduate students retain copyright ownership and moral rights for their thesis. You may use this material in any way that is permitted by the Copyright Act or through licensing that has been assigned to the document. For uses that are not allowable under copyright legislation or licensing, you are required to seek permission. Downloaded from PRISM: https://prism.ucalgary.ca UNIVERSITY OF CALGARY Preconditioned Iterative Solvers on GPU and an In-Situ Combustion Simulator by Bo Yang A THESIS SUBMITTED TO THE FACULTY OF GRADUATE STUDIES IN PARTIAL FULFILLMENT OF THE REQUIREMENTS FOR THE DEGREE OF DOCTOR OF PHILOSOPHY GRADUATE PROGRAM IN CHEMICAL AND PETROLEUM ENGINEERING CALGARY, ALBERTA JANUARY, 2020 c Bo Yang 2020 Abstract This thesis consists of two parts: preconditioned iterative solvers on GPU and an in-situ combus- tion simulator. The purpose of the first research is to develop a new parallel solution platform based on GPU features. An application of HPC (high-performance computing) technology to reservoir simulation has become an inevitable trend. As a platform for HPC, GPU can provide an effective solution for per- sonal computers and workstations. In this research, not only a series of special CPR (constrained pressure residual) preconditioned solvers are developed for black oil models, but also a variety of other preconditioned solvers are completed as contrast solvers.
    [Show full text]
  • T.C. Selçuk Ünġversġtesġ Fen Bġlġmlerġ Enstġtüsü
    T.C. SELÇUK ÜNĠVERSĠTESĠ FEN BĠLĠMLERĠ ENSTĠTÜSÜ HEPTADĠAGONAL MATRĠSLERĠN POZĠTĠF TAMSAYI KUVVETLERĠNĠN HESAPLANMASI Murat GÜBEġ YÜKSEK LĠSANS TEZĠ MATEMATĠK ANABĠLĠM DALI MART-2011 KONYA Her Hakkı Saklıdır TEZ KABUL VE ONAYI Murat GÜBEŞ tarafından hazırlanan ―Heptadiagonal Matrislerin Pozitif Tamsayı Kuvvetlerinin Hesaplanması‖ adlı tez çalışması 04/03/2011 tarihinde aşağıdaki jüri tarafından oy birliği ile Selçuk Üniversitesi Fen Bilimleri Enstitüsü Matematik Anabilim Dalı’nda YÜKSEK LİSANS TEZİ olarak kabul edilmiştir. Jüri Üyeleri Ġmza BaĢkan Doç. Dr. Galip OTURANÇ ………………….. DanıĢman Prof. Dr. Durmuş BOZKURT ………………….. Üye Doç. Dr. Ramazan TÜRKMEN ………………….. Yukarıdaki sonucu onaylarım. Prof. Dr. Bayram SADE FBE Müdürü TEZ BĠLDĠRĠMĠ Bu tezdeki bütün bilgilerin etik davranış ve akademik kurallar çerçevesinde elde edildiğini ve tez yazım kurallarına uygun olarak hazırlanan bu çalışmada bana ait olmayan her türlü ifade ve bilginin kaynağına eksiksiz atıf yapıldığını bildiririm. DECLARATION PAGE I hereby declare that all information in this document has been obtained and presented in accordance with academic rules and ethical conduct. I also declare that, as required by these rules and conduct, I have fully cited and referenced all material and results that are not original to this work. Murat GÜBEŞ Tarih:04/03/2011 ÖZET YÜKSEK LĠSANS TEZĠ HEPTADĠAGONAL MATRĠSLERĠN POZĠTĠF TAMSAYI KUVVETLERĠNĠN HESAPLANMASI Murat GÜBEġ Selçuk Üniversitesi Fen Bilimleri Enstitüsü Matematik Anabilim Dalı DanıĢman: Prof. Dr. DurmuĢ BOZKURT 2011, 38 Sayfa Jüri Prof. Dr. DurmuĢ BOZKURT Doç. Dr. Ramazan TÜRKMEN Doç. Dr. Galip OTURANÇ Bu çalışmada, genel bir Heptadiagonal matris tanımı verildi. Buna bağlı olarak belli tipteki heptadiagonal bir matrisin inci kuvvetinin genel ifadesi elde edildi. Yine genel ifade içinde bu tip matrislerin Jordan formu, dönüşüm matrisi ve tersi elde edilmiştir.
    [Show full text]
  • On the Inverting of a General Heptadiagonal Matrix
    On the Inverting of A General Heptadiagonal Matrix A. A. KARAWIA∗ Computer science unit, Deanship of educational services, Qassim University, P.O.Box 6595, Buraidah 51452, Saudi Arabia. E-mail: [email protected] Abstract In this paper, we developed new numeric and symbolic algorithms to find the inverse of any nonsin- gular heptadiagonal matrix. Symbolic algorithm will not break and it is without setting any restrictive conditions. The computational cost of our algorithms is O(n). The algorithms are suitable for imple- mentation using computer algebra system such as MAPLE, MATLAB and MATHEMATICA. Examples are given to illustrate the efficiency of the algorithms. Keywords:Heptadiagonal matrices; LU factorization; Determinants; Computer algebra systems(CAS). AMS Subject Classification:15A15; 15A23; 68W30; 11Y05; 33F10; F.2.1; G.1.0. 1 Introduction Then × n general heptadiagonal matrices take the form: d1 e1 f1 g1 c2 d2 e2 f2 g2 b3 c3 d3 e3 f3 g3 0 a4 b4 c4 d4 e4 f4 g4 . H = .. .. .. .. .. .. .. ,n> 4. (1.1) a 3 b 3 c 3 d 3 e 3 f 3 g 3 n− n− n− n− n− n− n− a −2 b −2 c −2 d −2 e −2 f −2 0 n n n n n n arXiv:1412.4155v2 [math.NA] 18 Dec 2014 a −1 b −1 c −1 d −1 e −1 n n n n n a b c d n n n n where {ai}4≤i≤n, {bi}3≤i≤n, {ci}2≤i≤n, {di}1≤i≤n, {ei}1≤i≤n, {fi}1≤i≤n, and {gi}1≤i≤n are sequences of numbers such that gi 6=0, gn−2 = gn−1 = gn = 1 and fn−1 = fn = en = 0.
    [Show full text]
  • A New Algorithm for Inverting General Cyclic Heptadiagonal Matrices Recursively
    A New Algorithm for Inverting General Cyclic Heptadiagonal Matrices Recursively A.A. KARAWIA1 Computer Science Unit, Deanship of Educational Services, Qassim University, Buraidah 51452, Saudi Arabia. [email protected] ABSTRACT In this paper, we describe a reliable symbolic computational algorithm for inverting general cyclic heptadiagonal matrices by using parallel computing along with recursion. The algorithm is implementable to the Computer Algebra System(CAS) such as MAPLE, MATLAB and MATHEMATICA. An example is presented for the sake of illustration. Key Words: Cyclic heptadiagonal matrices; LU factorization; Determinants; Inverse matrix; Linear systems; Computer Algebra System(CAS). 1. INTRODUCTION The n × n general periodic heptadiagonal matrices are takes the form: d1 a 1 A 1 C 100 B 1 b 1 b d a A C00 B 2 2 2 2 2 2 B3 b 3 d 3 a 3 A 3 C 3 00 D3 B 3 b 3 d 3 a 3 A 3 C 3 0 0 H (1.1) 0 0 D B b d a A C n3 n 3 n 3 n 3 n 3 n 3 n 3 00Dn2 B n 2 b n 2 d n 2 a n 2 A n 2 A00 D B b d a n1 n 1 n 1 n 1 n 1 n 1 an A n0 0 0 D n B n b n d n Where n 8. The inverses of cyclic heptadiagonal matrices are usually required in science and engineering applications, for more details (see special cases, [1-9]). The motivation of the current paper is to establish efficient algorithms for inverting cyclic heptadiagonal matrices of the form (1.1) and for solving linear systems of the form: Hx r (1.2) 1 Home address: Mathematics Department, Faculty of Science, Mansoura University, Mansoura, 35516, Egypt.
    [Show full text]
  • THESIS Contributions to Parametric Image Registration and 3D Surface
    THESIS Presented at Universite´ d’Auvergne For the degree of Doctor of the Universite´ d’Auvergne Speciality Computer Vision Defended by Florent BRUNET on 2010, November 30 Title Contributions to Parametric Image Registration and 3D Surface Reconstruction Jury President Laurent Sarry Co-Directors Adrien Bartoli Remy´ Malgouyres Nassir Navab Reviewers Lourdes Agapito Joachim Hornegger Etienne´ Memin´ 2 3 Abstract This thesis deals with the modelling and the estimation of parametric functions in Computer Vision. It focuses on three main topics: range surface fitting, image registration, and 3D reconstruction of smooth surfaces. In addition to these three main topics, we consider other transversal elements. In particular, we focus on the general problem caused by the hyperparameters in parametric model estimation, which includes regularization problems. All these topics are related by a single objective which is nowadays one of the most important goals in Computer Vision: the reconstruction of an arbitrary surface from images taken in an arbitrarily deforming environment. This thesis can be divided into four main parts. The first part deals with the basics. It includes background on optimization and on parameter estimation. The problems related to the hyperparameters are also explained and illustrated. The rest of the thesis is centred on our original contributions. The second part of this thesis deals with the problem of fitting a surface to range data. This problem consists in finding a parametric smooth surface that approximates accurately a sparse set of 3D points. We consider two main problems. First, we propose methods to automatically tune the hyperparameters such as a regularization weight. Second, we show how heteroskedastic noise may be handled.
    [Show full text]
  • A New and Simple Matrix Inversion Method Using Dodgson's
    Asian Research Journal of Mathematics 11(4): 1-24, 2018; Article no.ARJOM.45010 ISSN: 2456-477X A New and Simple Matrix Inversion Method Using Dodgson's Condensation ∗ Okoh Ufuoma1 1Department of Mathematics and Science, Apex Academy, Uwheru, Delta State, Nigeria. Author's contribution The sole author designed, analyzed, interpreted and prepared the manuscript. Article Information DOI: 10.9734/ARJOM/2018/45010 Editor(s): (1) Dr. Nikolaos Dimitriou Bagis, Department of Informatics and Mathematics, Aristotelian University of Thessaloniki, Greece. Reviewers: (1) Ivan Kyrchei, Pidstryhach Institute for Applied Problems of Mechanics and Mathematics, NAS of Ukraine, Ukraine. (2) Grienggrai Rajchakit, Maejo University, Thailand. Complete Peer review History: http://www.sciencedomain.org/review-history/27765 Received: 13 September 2018 Accepted: 27 November 2018 Original Research Article Published: 16 December 2018 Abstract This article furnishes a new and simple matrix inversion method which makes full use of the condensation technique of the author of Alice's Adventures in Wonderland, Charles Dodgson. A special feature of this article is the adoption of Bhaskara's Law of Impending Operation on Zero in overcoming the problem of division by zero whenever zero appears as a divisor in the condensation technique of Dodgson. Keywords: Matrix; determinant; division by zero; Bhaskara's law of impending operation on zero; inverse of matrices; Dodgson Condensation; Cofactor matrix. 2010 Mathematics Subject Classification: 15A06, 15A15, 15A09. 1 Introduction Given any matrix, one knows, by the standard method of finding the minor of each element [1], how to compute the cofactor matrix containing the minors with their prescribed signs, and hence *Corresponding author: E-mail: [email protected]; Ufuoma; ARJOM, 11(4): 1-24, 2018; Article no.ARJOM.45010 the inverse of the original matrix, obtained by dividing the transpose of the cofactor matrix by the determinant of the original matrix [2], [3], [4], [5], [6].
    [Show full text]