Presentation is loading. Please wait.

Presentation is loading. Please wait.

On the Use of Sparse Direct Solver in a Projection Method for Generalized Eigenvalue Problems Using Numerical Integration Takamitsu Watanabe and Yusaku.

Similar presentations


Presentation on theme: "On the Use of Sparse Direct Solver in a Projection Method for Generalized Eigenvalue Problems Using Numerical Integration Takamitsu Watanabe and Yusaku."— Presentation transcript:

1 On the Use of Sparse Direct Solver in a Projection Method for Generalized Eigenvalue Problems Using Numerical Integration Takamitsu Watanabe and Yusaku Yamamoto Dept. of Computational Science & Engineering Nagoya University

2 Outline Background Objective of our study Projection method for generalized eigenvalue problems using numerical integration Application of the sparse direct solver Numerical results Conclusion

3 Background Generalized eigenvalue problems in quantum chemistry and structural engineering real axis eigenvalues specified interval Problem characteristics A and B are large and sparse. A is real symmetric and B is s.p.d. Eigenvalues are real. Eigenvalues in a specified interval are often needed. Given, find and such that. HOMO LUMO

4 Background (cont ’ d) A projection method using numerical integration Sakurai and Sugiura, A projection method for generalized eigenvalue problems, J. Comput. Appl. Math. (2003) Reduce the original problem to a small generalized eigenvalue problem within a specified region in the complex plane. By solving the small problem, the eigenvalues lying in the region can be obtained. The main part of computation is to solve multiple linear simultaneous equations. Suited for parallel computation. Original problem Small generalized eigenvalue problem within the region region

5 Objective of our study Previous approach Solve the linear simultaneous equations by an iterative method. The number of iterations needed for convergence differs from one simultaneous equations to another. This brings about load imbalance between processors, decreasing parallel efficiency. Our study Solve the linear simultaneous equations by a sparse direct solver without pivoting. Load balance will be improved since the computational times are the same for all linear simultaneous equations.

6 Projection method for generalized eigenvalue problems using numerical integration × λ m+2 × λ m+1 Suppose that has distinct eigenvalues and that we need that lie in a closed curve. Using two arbitrary complex vectors, define a complex function Then, f (z) can be expanded as follows:. C, g(z) : polynomial in z., c c

7 Projection method for generalized eigenvalue problems using numerical integration (cont ’ d) Further define the moments by and two Hankel matrices by. Th. are the m roots of. The original problem has been reduced to a small problem through contour integral.

8 Projection method for generalized eigenvalue problems using numerical integration (cont ’ d) Path of integration Set the path of integration  to a circle with center  and radius . Approximate the integral using the trapezoidal rule. Computation of the moments : The function values have to be computed for each. Solution of N independent linear simultaneous equations is necessary ( N = 64 128 ). 

9 Application of the sparse direct solver For a sparse s.p.d. matrix, the sparse direct solver provides an efficient way for solving the linear simultaneous equations. We adopt this approach by extending the sparse direct solver to deal with complex symmetric matrices. The coefficient matrix is a sparse complex symmetric matrix. A and B : sparse symmetric matrices, : a complex number

10 The sparse direct solver Characteristics Reduce the computational work and memory requirements of the Cholesky factorization by exploiting the sparsity of the matrix. Stability is guaranteed when the matrix is s.p.d. Efficient parallelization techniques are available. ordering symbolic factorization Cholesky factorization triangular solution Find a permutation of rows/columns that reduces computational work and memory requirements. Estimate the computational work and memory requirements. Prepare data structures to store the Cholesky factor.

11 Extension of the sparse direct solver to complex symmetric matrices Algorithm Extension is straightforward by using the Cholesky factorization for complex symmetric matrices. Advantages such as reduced computational work, reduced memory requirements and parallelizability are carried over. Accuracy and stability Theoretically, pivoting is necessary when factorizing complex symmetric matrices. Since our algorithm does not incorporate pivoting, accuracy and stability is not guaranteed. We examine the accuracy and stability experimentally by comparing the results with those obtained using GEPP.

12 Numerical results Matrices used in the experiments BCSSTK12 BCSSTK13 FMO matrixNNNZexplanation BCSSTK12147317,857Ore car -- consistent mass BCSSTK13200342,943Fluid flow generalized eigenvalues FMO1980365,030Fragment molecular orbital method Harwell-Boeing Library For each matrix, we solve the equations with the sparse direct solver (with MD and ND ordering) and GEPP. We compare the computational time and accuracy of the eigenvalues.

13 Computational time Computational time (sec.) for one set of linear simultaneous equations and speedup (PowerPC G5, 2.0GHz) matrixLAPACK (GEPP)sparse solver (MD)sparse solver (ND) BCSSTK122.44 (1x)0.017 (144x)0.021 (116x) BCSSTK136.12 (1x)0.36 (17x)0.43 (14x) FMO5.86 (1x)2.93 (2.0x)3.51 (1.7x) The sparse direct solver is two to over one hundred times faster than GEPP, depending on the nonzero structure. BCSSTK12 BCSSTK13 FMO

14 Accuracy of the eigenvalues (BCSSTK12) Example of an interval containing 4 eigenvalues Relative errors in the eigenvalues for each algorithm ( N=64 ) Distribution of the eigenvalues and the specified interval eigenvalues specified interval The errors were of the same order for all three solvers. Also, the growth factor for the sparse solver was O(1).

15 Accuracy of the eigenvalues (BCSSTK13) Example of an interval containing 3 eigenvalues Distribution of the eigenvalues and the specified interval eigenvalues specified interval The errors were of the same order for all three solvers. Relative errors in the eigenvalues for each algorithm ( N=64 )

16 Accuracy of the eigenvalues (FMO) Example of an interval containing 4 eigenvalues Distribution of the eigenvalues and the specified interval eigenvalues specified interval The errors were of the same order for all three solvers. Relative errors in the eigenvalues for each algorithm ( N=64 )

17 Conclusion Summary of this study We applied a complex symmetric version of the sparse direct solver to a projection method for generalized eigenvalue problems using numerical integration. The sparse solver succeeded in solving the linear simultaneous equations stably and accurately, producing eigenvalues that are as accurate as those obtained by GEPP. Future work Apply our algorithm to larger matrices arising from quantum chemistry applications. Construct a hybrid method that uses an iterative solver when the growth factor becomes too large. Parallelize the sparse solver to enable more than N processors to be used.


Download ppt "On the Use of Sparse Direct Solver in a Projection Method for Generalized Eigenvalue Problems Using Numerical Integration Takamitsu Watanabe and Yusaku."

Similar presentations


Ads by Google