LDL’ = PAP’ Speaker : 高崇閔. Program structure[1] Use high precision Main function 1_1 pivot do 1_1 pivot in case_1 to case_3 main.cpp test_matrix.cpp test.

Slides:



Advertisements
Similar presentations
Course: CS 4MN3 Student: Imam Abdukerim Professor: Dr. Sanzheng Qiao
Advertisements

Chapter 11 Gaussian Elimination (I)
4/22/ LU Decomposition Electrical Engineering Majors Authors: Autar Kaw Transforming.
Chapter 13 Gaussian Elimination (III) Bunch-Parlett diagonal pivoting
MATH 685/ CSI 700/ OR 682 Lecture Notes
Scientific Computing Linear Systems – Gaussian Elimination.
SOLVING SYSTEMS OF LINEAR EQUATIONS. Overview A matrix consists of a rectangular array of elements represented by a single symbol (example: [A]). An individual.
CISE301_Topic3KFUPM1 SE301: Numerical Methods Topic 3: Solution of Systems of Linear Equations Lectures 12-17: KFUPM Read Chapter 9 of the textbook.
Speaker: Lung-Sheng Chien
LU Decomposition Greg Beckham, Michael Sedivy. Overview.
Lecture 11 - LU Decomposition
Chapter 2, Linear Systems, Mainly LU Decomposition.
Maths for Computer Graphics
Part 3 Chapter 10 LU Factorization PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The McGraw-Hill Companies,
Chapter 15 C-implementation PA = LU Speaker: Lung-Sheng Chien.
GPU [1] Speaker 高崇閔. Exceed limitation Error massage Line 47 Ecercise2.
MECH300H Introduction to Finite Element Methods Lecture 2 Review.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 17 Solution of Systems of Equations.
11-1 Chapter 11 2D Arrays Asserting Java Rick Mercer.
Math for CSLecture 31 LU Decomposition Pivoting Diagonalization Gram-Shcmidt Orthogonalization Lecture 3.
Arrays. 2 The array data structure An array is an indexed sequence of components Typically, the array occupies sequential storage locations The length.
Monica Garika Chandana Guduru. METHODS TO SOLVE LINEAR SYSTEMS Direct methods Gaussian elimination method LU method for factorization Simplex method of.
Chapter 17 C-implementation PAP’ = LDL’ Speaker: Lung-Sheng Chien Reference: [1] H. M. Deitel, P. J. Deitel, C++ How to Program 5-th edition.
Mujahed AlDhaifallah (Term 342) Read Chapter 9 of the textbook
Math for CSLecture 31 LU Decomposition Pivoting Diagonalization Gram-Shcmidt Orthogonalization Lecture 3.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 18 LU Decomposition and Matrix Inversion.
Chapter 12 Gaussian Elimination (II) Speaker: Lung-Sheng Chien Reference book: David Kincaid, Numerical Analysis Reference lecture note: Wen-wei Lin, chapter.
Ger man Aerospace Center Gothenburg, April, 2007 Coding Schemes for Crisscross Error Patterns Simon Plass, Gerd Richter, and A.J. Han Vinck.
Chapter 7 Matrix Mathematics Matrix Operations Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Scientific Computing Linear Systems – LU Factorization.
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
Square n-by-n Matrix.
MA2213 Lecture 5 Linear Equations (Direct Solvers)
Using LU Decomposition to Optimize the modconcen.m Routine Matt Tornowske April 1, 2002.
Introduction to Numerical Analysis I MATH/CMPSC 455 PA=LU.
Timing Trials An investigation arising out of the Assignment CS32310 – Nov 2013 H Holstein 1.
ΑΡΙΘΜΗΤΙΚΕΣ ΜΕΘΟΔΟΙ ΜΟΝΤΕΛΟΠΟΙΗΣΗΣ 4. Αριθμητική Επίλυση Συστημάτων Γραμμικών Εξισώσεων Gaussian elimination Gauss - Jordan 1.
MA/CS 375 Fall MA/CS 375 Fall 2003 Lecture 19.
EE616 Dr. Janusz Starzyk Computer Aided Analysis of Electronic Circuits Innovations in numerical techniques had profound import on CAD: –Sparse matrix.
MA/CS 375 Fall MA/CS 375 Fall 2002 Lecture 21.
Lecture 8 Matrix Inverse and LU Decomposition
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 3 - Chapter 9 Linear Systems of Equations: Gauss Elimination.
Elliptic PDEs and the Finite Difference Method
On the Use of Sparse Direct Solver in a Projection Method for Generalized Eigenvalue Problems Using Numerical Integration Takamitsu Watanabe and Yusaku.
Simulating complex surface flow by Smoothed Particle Hydrodynamics & Moving Particle Semi-implicit methods Benlong Wang Kai Gong Hua Liu
Working with Arrays in MATLAB
Forward modelling The key to waveform tomography is the calculation of Green’s functions (the point source responses) Wide range of modelling methods available.
PARALLELIZATION OF MULTIPLE BACKSOLVES James Stanley April 25, 2002 Project #2.
FORTRAN History. FORTRAN - Interesting Facts n FORTRAN is the oldest Language actively in use today. n FORTRAN is still used for new software development.
ECE 530 – Analysis Techniques for Large-Scale Electrical Systems Prof. Hao Zhu Dept. of Electrical and Computer Engineering University of Illinois at Urbana-Champaign.
1.7 Linear Independence. in R n is said to be linearly independent if has only the trivial solution. in R n is said to be linearly dependent if there.
GAIN: GPU Accelerated Intensities Ahmed F. Al-Refaie, S. N. Yurchenko, J. Tennyson Department of Physics Astronomy - University College London - Gower.
TEMPLATE DESIGN © H. Che 2, E. D’Azevedo 1, M. Sekachev 3, K. Wong 3 1 Oak Ridge National Laboratory, 2 Chinese University.
Sinwook Lee Digital Media Lab. HYU.  Linear Equations  To gain the appropriate solution, 1..n of equations are necessary.  The num of equations < n.
Numerical Methods.  LU Decomposition is another method to solve a set of simultaneous linear equations  For most non-singular matrix [A] that one could.
Numerical Computation Lecture 6: Linear Systems – part II United International College.
1 Numerical Methods Solution of Systems of Linear Equations.
LU Decomposition ● In Gauss elimination; Forward elimination Backward substitution Major computational effort Low computational effort can be used for.
Chapter 2, Linear Systems, Mainly LU Decomposition
Linear Equations.
Linear Systems, Mainly LU Decomposition
Report Implement PAP’ = LDL’ and linear solver in C/C++ ( ok )
Section 1.8: Introduction to Linear Transformations.
MATLAB EXAMPLES Matrix Solution Methods
Part 3 Chapter 10 LU Factorization
Coordinate Transformation in 3D Final Project Presentation
Lecture 13 Simultaneous Linear Equations – Gaussian Elimination (2) Partial Pivoting Dr .Qi Ying.
Lecture 8 Matrix Inverse and LU Decomposition
Linear Systems of Equations: solution and applications
Chapter 2, Linear Systems, Mainly LU Decomposition
Presentation transcript:

LDL’ = PAP’ Speaker : 高崇閔

Program structure[1] Use high precision Main function 1_1 pivot do 1_1 pivot in case_1 to case_3 main.cpp test_matrix.cpp test constructor and display

Program structure[2] test_Bunch_Kaufman.cpp test LDL’ = PAP’

Program structure[3] Bunch_Kaufman.cpp Initial & declare Bunch_Kaufman.cpp Assert Bunch_Kaufman.cpp Construct matrix L, pivot & permutation

Program structure[4] Bunch_Kaufman.cpp If a_kk >= α *λ, then do Case_1 1_1 Pivot Bunch_Kaufman.cpp If a_kk* λ_r >= α * λ _1^2, then do Case_2

Program structure[5] Bunch_Kaufman.cpp Update matrixes do Pivot If a_rr >= α * λ_r, then do case_3 Bunch_Kaufman.cpp If a_rr < α * λ_r, do Case_4

Program structure[6] Bunch_Kaufman.cpp Compute determine Compute matrix L Update matrix A

Matlab[1] MatLab is more convenient in matrix computation. The code in matlab will be shorter. The code in matlab is easier to construct. C program is more difficult to construct, but may more fast. (?)

Matlab[2] n = 100 time = n = 200 time = n = 400 time = n = 800 time = LDL’ = PAP’ composition n = 100 time = n = 200 time = n = 400 time = n = 800 time = Linear solver in forward n = 100 time = n = 200 time = n = 400 time = n = 800 time = Linear solver in backward Conclusion : (i)we spend most time in decomposition (ii) forward is more faster than backward

Memory usage A lower triangle matrix to store the initial matrix A [ m*(m+1) / 2 ] * doublereal A column vector to store matrix pivot [(m*1)] * integer A column vector to store matrix Per(mutation) [(m*1)] *integer A temporary matrix to store matrix L [(m*2)] * doublereal Totally (1) [ m(m+5) / 2 ] * doublereal (2) (2m) * integer (this statistics is roughly and ignore other data which are not matrix date type)

Speedup strategy Using mutilthread We will load lower triangle matrix A into graphical card at first. In case_4, we can use different thread to compute determine(because they’re independent) When we finish decomposition, we must back to do linear solver, then we can use different thread to make computation fast. (even in backward or forward, we always do many computation into element multiple) However, we still not solve the major problem such that we have to spend our most time in composition.