Bidiagonalization of Matrices and Solution of Linear Equations* C

Total Page:16

File Type:pdf, Size:1020Kb

Bidiagonalization of Matrices and Solution of Linear Equations* C SIAM J. NUMER. ANAL. Vol. 11, No. 1, March 1974 BIDIAGONALIZATION OF MATRICES AND SOLUTION OF LINEAR EQUATIONS* C. C. PAIGE Abstract. An algorithm given by Golub and Kahan [2] for reducing a general matrix to bidiagonal form is shown to be very important for large sparse matrices. The singular values of the matrix are those of the bidiagonal form, and these can be easily computed. The bidiagonalization algorithm is shown to be the basis of important methods for solving the linear least squares problem for large sparse matrices. Eigenvalues of certain 2-cyclic matrices can also be efficiently computed using this bidiagonalization. 1. Introduction. The singular value decomposition of an m n matrix A is (1.1) A XZYH, where X and Y are unitary matrices and 2; is a rectangular diagonal m n matrix with nonnegative real diagonal entries, the singular values of A. Golub and Kahan [2, (2.4)] suggest a particular method for producing a bidiagonal matrix with the same singular values as A. This method is related to the Lanczos method of minimized iterations for tridiagonalizing a symmetric matrix [5], and like that method is ideally suited for large sparse matrices. The equivalent bidiagonalization of a general matrix and tridiagonalization of a symmetric matrix using Householder matrices is more stable but cannot be applied to many large sparse problems because of storage and time considerations. Despite a certain numerical instability it is known that a particular variant of the Lanczos tridiagonalization algorithm still gives extremely useful results [7, that is, the eigenvalues and eigenvectors are given as accurately as could be hoped, but the Convergence can be slower than the theoretical rate, and often several computed eigenvalues can represent just one true eigenvalue. The bidiagonaliza- tion algorithm of Golub and Kahan will be seen to be numerically equivalent to this variant of the Lanczos method applied to a certain matrix, and so will have the same sort of stability. Thus singular values will be given accurately, but with uncertain multiplicity. The bidiagonalization algorithm and its properties are given in 2 more fully than in [2]. Section 2 also indicates how eigenvalues of 2-cyclic matrices may be found efficiently using this approach. The Lanczos tridiagonalization of symmetric matrices is the basis of the conjugate gradients method of solution of equations [6], [4]; and Reid [8] has done much good work to show that the conjugate gradients method not only works, but is one of the best available for several large sparse problems. The reason it works the way it does is directly related to the performance ofthe Lanczos algorithm. In a similar manner it will be shown here that the bidiagonalization algorithm is the basis for two methods of solving the linear least squares problem. These methods are remarkably simple and ideally suited to general large sparse prob- lems, requiring very little computation per step, or storage. They derive their * Received by the editors July 11, 1972. ? School of Computer Science, McGill University, Montreal, Canada. This work was done while Visiting Research Associate at Stanford University under National Science Foundation Grant GJ- Downloaded 04/30/14 to 130.149.15.249. Redistribution subject SIAM license or copyright; see http://www.siam.org/journals/ojsa.php 29988X. 197 198 c.c. PAIGE accuracy and convergence characteristics from those of the bidiagonalization algorithm. Finally, the relevant singular values of the problem can be found, as well as the solution; these are important for understanding the accuracy of the solution. The two solution of equations methods are developed and examined in 3 and 4. 2. The bidiagonalization algorithm. Here will denote the/2-norm, that is, Ilull (u, u) u"u. The algorithm suggested by Golub and Kahan 2] for bidiagonalizing A will now be described in detail. For a given m x n matrix A and a given initial vector U with ]]ul]l 1, the method produces m-dimensional vectors u l, u2,'", and n-dimensional vectors vl, v2, as follows: For 1,2, (2.1) (iVi-- AHui- fliUi 1, lU0 0, (2.2) fli+ 1/'/i+ Avi (zilgi, where the real scalars i and i+l are chosen to be nonnegative and such that liui+l]l ]lv/]] 1. Suppose i, fli+l are nonzero for i= 1,2,..., k. Then the above process is fully defined for k steps, and if U [-u,u2,..., u, (X 2 (2.3) L V-- v,v2,..., k then (2.1) and (2.2) may be rewritten n (2.4) A U VLn, AV UL + k+ lUk+ lek, where ek is the last column of the k k unit matrix lk, so that (2.5) UnAV= UnUL + flk+lUnuk+, LVnV. Ifak+ is also nonzero and one more step of(2.1) alone is executed, with [U, b/k+ 1], L =-[Ln, ilk+ lek] H, then (2.6) Therefore, (2.7) VnAnO VnVn + + Vnv+ + It is now easy to show by induction that n H (2.8) U U V V I k. This is certainly true for k 1, so suppose it is true for some k _> 1. Then from (2.5), UnUk+ 0, and from (2.7), VnVk + 0, and so (2.8) is true for k + 1. This orthogonality ensures that the process will curtail for some value k Downloaded 04/30/14 to 130.149.15.249. Redistribution subject SIAM license or copyright; see http://www.siam.org/journals/ojsa.php no greater than the minimum of m and n with either ilk+ Uk+l 0 in (2.4) or BIDIAGONALIZATION OF MATRICES 199 Ok + 1Vk + 0 in (2.6). As a result there are two possible final states of the algorithm, the first with the k k matrix L" (2.9) AI-Iu VL I-I, A V= UL, UI-IU vnv= I,, and the second with the (k + 1) x k matrix (2.10) A1-1 V 11 A V-- 1-1" i,+ VI-Iv I,. To understand which termination will occur, consider the singular value decomposition of in (2.10). has linearly independent columns so (2.11) pMQI-1 pup ppl-l= I,+ 1, QI-IQ QQI-I= I, where M is (k + 1) k and has elements m,...,mkk> 0" mu= 0 fori-Cj. Thus Al-lp VQMu, A VQ UPM. Therefore, (2.12) AAHp PMM I-I, AriA VQ VQMI-IM, and so when (2.10) results, A has at least k nonzero singular values m11, tnk, and at least one zero singular value with the last column of OP being the singular vector that lies in V(An), the null space of A n. Now if for it is true that ui (A), the range of A, then it can be seen from (2.2) that this is true for all i. But (Au) is the orthogonal complement of (A), so if ul (A), then all ui are orthogonal to Y(AU), and from the previous paragraph this means that (2.10) cannot be the final result, and so (2.9) must result. Next note that if(2.9) is the final result, then since L is nonsingular U A VL- 1, so that u (A) for all i; thus if ul (A) then (2.9) cannot follow and (2.10) must be the final result. Note that if A has rank r m, then u (A) necessarily, and (2.9) follows. If r < m, then (2.10) will result unless u is a linear combination of some of the columns of X in (1.1). Both final states give k nonzero singular values of A, so the process must curtail with k <= r. If the process halts with k < r, then it can be continued in an obvious way until r orthogonal vectors v x, ..., vr are obtained [2]. Then if u (A), the result (2.9) can be written (2.13) A ULVH, UHU vHv I,.. Otherwise the result follows from (2.10)" u n (2.14) A ULV OnO I+ 1, V V I,. Downloaded 04/30/14 to 130.149.15.249. Redistribution subject SIAM license or copyright; see http://www.siam.org/journals/ojsa.php Such continuation need not be considered here. 200 c.c. PAIGE We shall now relate the bidiagonalization algorithm to the Lanczos reduction of a certain symmetric matrix to tridiagonal form. Defining /A 0 /'/2 0 b/k 0 W--- [w1, w2, W2k 0 V 0 V 2 0 0 51 (2.15) 0 51 0 B= T =- A/ /2 0 5 2 it can be seen for example that (2.4) is mathematically equivalent to (2.16) BW WT + fl,+ lw2k+ lek, Wt-Iw I2,, WHw2k+ O, which is the result of applying 2k steps of the Lanczos process to B using as initial vector w l, the first column of W. Note that computation and vector storage have effectively been halved by taking full advantage of the structure of B. A direct comparison of this algorithm with the successful variant of the Lanczos algorithm in [7] applied to the matrix B and initial vector w shows that the two methods are also computationally equivalent. In practice neither algorithm will stop with either 5 or zero, but for large enough k many of the eigenvalues of T in (2.15) will approximate eigenvalues of B to almost machine precision. Now if 2 is an eigenvalue of B such that then AHAz ,2z, so that a 121 is a singular value of A, and several singular values of A will be given to almost machine precision by computing the eigenvalues of T.
Recommended publications
  • A Parallel Lanczos Algorithm for Eigensystem Calculation
    A Parallel Lanczos Algorithm for Eigensystem Calculation Hans-Peter Kersken / Uwe Küster Eigenvalue problems arise in many fields of physics and engineering science for example in structural engineering from prediction of dynamic stability of structures or vibrations of a fluid in a closed cavity. Their solution consumes a large amount of memory and CPU time if more than very few (1-5) vibrational modes are desired. Both make the problem a natural candidate for parallel processing. Here we shall present some aspects of the solution of the generalized eigenvalue problem on parallel architectures with distributed memory. The research was carried out as a part of the EC founded project ACTIVATE. This project combines various activities to increase the performance vibro-acoustic software. It brings together end users form space, aviation, and automotive industry with software developers and numerical analysts. Introduction The algorithm we shall describe in the next sections is based on the Lanczos algorithm for solving large sparse eigenvalue problems. It became popular during the past two decades because of its superior convergence properties compared to more traditional methods like inverse vector iteration. Some experiments with an new algorithm described in [Bra97] showed that it is competitive with the Lanczos algorithm only if very few eigenpairs are needed. Therefore we decided to base our implementation on the Lanczos algorithm. However, when implementing the Lanczos algorithm one has to pay attention to some subtle algorithmic details. A state of the art algorithm is described in [Gri94]. On parallel architectures further problems arise concerning the robustness of the algorithm. We implemented the algorithm almost entirely by using numerical libraries.
    [Show full text]
  • Exact Diagonalization of Quantum Lattice Models on Coprocessors
    Exact diagonalization of quantum lattice models on coprocessors T. Siro∗, A. Harju Aalto University School of Science, P.O. Box 14100, 00076 Aalto, Finland Abstract We implement the Lanczos algorithm on an Intel Xeon Phi coprocessor and compare its performance to a multi-core Intel Xeon CPU and an NVIDIA graphics processor. The Xeon and the Xeon Phi are parallelized with OpenMP and the graphics processor is programmed with CUDA. The performance is evaluated by measuring the execution time of a single step in the Lanczos algorithm. We study two quantum lattice models with different particle numbers, and conclude that for small systems, the multi-core CPU is the fastest platform, while for large systems, the graphics processor is the clear winner, reaching speedups of up to 7.6 compared to the CPU. The Xeon Phi outperforms the CPU with sufficiently large particle number, reaching a speedup of 2.5. Keywords: Tight binding, Hubbard model, exact diagonalization, GPU, CUDA, MIC, Xeon Phi 1. Introduction hopping amplitude is denoted by t. The tight-binding model describes free electrons hopping around a lattice, and it gives a In recent years, there has been tremendous interest in utiliz- crude approximation of the electronic properties of a solid. The ing coprocessors in scientific computing, including condensed model can be made more realistic by adding interactions, such matter physics[1, 2, 3, 4]. Most of the work has been done as on-site repulsion, which results in the well-known Hubbard on graphics processing units (GPU), resulting in impressive model[9]. In our basis, however, such interaction terms are di- speedups compared to CPUs in problems that exhibit high data- agonal, rendering their effect on the computational complexity parallelism and benefit from the high throughput of the GPU.
    [Show full text]
  • An Implementation of a Generalized Lanczos Procedure for Structural Dynamic Analysis on Distributed Memory Computers
    NU~IERICAL ANALYSIS PROJECT AUGUST 1992 MANUSCRIPT ,NA-92-09 An Implementation of a Generalized Lanczos Procedure for Structural Dynamic Analysis on Distributed Memory Computers . bY David R. Mackay and Kincho H. Law NUMERICAL ANALYSIS PROJECT COMPUTER SCIENCE DEPARTMENT STANFORD UNIVERSITY STANFORD, CALIFORNIA 94305 An Implementation of a Generalized Lanczos Procedure for Structural Dynamic Analysis on Distributed Memory Computers’ David R. Mackay and Kincho H. Law Department of Civil Engineering Stanford University Stanford, CA 94305-4020 Abstract This paper describes a parallel implementation of a generalized Lanczos procedure for struc- tural dynamic analysis on a distributed memory parallel computer. One major cost of the gener- alized Lanczos procedure is the factorization of the (shifted) stiffness matrix and the forward and backward solution of triangular systems. In this paper, we discuss load assignment of a sparse matrix and propose a strategy for inverting the principal block submatrix factors to facilitate the forward and backward solution of triangular systems. We also discuss the different strategies in the implementation of mass matrix-vector multiplication on parallel computer and how they are used in the Lanczos procedure. The Lanczos procedure implemented includes partial and external selective reorthogonalizations and spectral shifts. Experimental results are presented to illustrate the effectiveness of the parallel generalized Lanczos procedure. The issues of balancing the com- putations among the basic steps of the Lanczos procedure on distributed memory computers are discussed. IThis work is sponsored by the National Science Foundation grant number ECS-9003107, and the Army Research Office grant number DAAL-03-91-G-0038. Contents List of Figures ii .
    [Show full text]
  • Lanczos Vectors Versus Singular Vectors for Effective Dimension Reduction Jie Chen and Yousef Saad
    1 Lanczos Vectors versus Singular Vectors for Effective Dimension Reduction Jie Chen and Yousef Saad Abstract— This paper takes an in-depth look at a technique for a) Latent Semantic Indexing (LSI): LSI [3], [4] is an effec- computing filtered matrix-vector (mat-vec) products which are tive information retrieval technique which computes the relevance required in many data analysis applications. In these applications scores for all the documents in a collection in response to a user the data matrix is multiplied by a vector and we wish to perform query. In LSI, a collection of documents is represented as a term- this product accurately in the space spanned by a few of the major singular vectors of the matrix. We examine the use of the document matrix X = [xij] where each column vector represents Lanczos algorithm for this purpose. The goal of the method is a document and xij is the weight of term i in document j. A query identical with that of the truncated singular value decomposition is represented as a pseudo-document in a similar form—a column (SVD), namely to preserve the quality of the resulting mat-vec vector q. By performing dimension reduction, each document xj product in the major singular directions of the matrix. The T T (j-th column of X) becomes Pk xj and the query becomes Pk q Lanczos-based approach achieves this goal by using a small in the reduced-rank representation, where P is the matrix whose number of Lanczos vectors, but it does not explicitly compute k column vectors are the k major left singular vectors of X.
    [Show full text]
  • Copyright © by SIAM. Unauthorized Reproduction of This Article Is Prohibited. PARALLEL BIDIAGONALIZATION of a DENSE MATRIX 827
    SIAM J. MATRIX ANAL. APPL. c 2007 Society for Industrial and Applied Mathematics Vol. 29, No. 3, pp. 826–837 ∗ PARALLEL BIDIAGONALIZATION OF A DENSE MATRIX † ‡ ‡ § CARLOS CAMPOS , DAVID GUERRERO , VICENTE HERNANDEZ´ , AND RUI RALHA Abstract. A new stable method for the reduction of rectangular dense matrices to bidiagonal form has been proposed recently. This is a one-sided method since it can be entirely expressed in terms of operations with (full) columns of the matrix under transformation. The algorithm is well suited to parallel computing and, in order to make it even more attractive for distributed memory systems, we introduce a modification which halves the number of communication instances. In this paper we present such a modification. A block organization of the algorithm to use level 3 BLAS routines seems difficult and, at least for the moment, it relies upon level 2 BLAS routines. Nevertheless, we found that our sequential code is competitive with the LAPACK DGEBRD routine. We also compare the time taken by our parallel codes and the ScaLAPACK PDGEBRD routine. We investigated the best data distribution schemes for the different codes and we can state that our parallel codes are also competitive with the ScaLAPACK routine. Key words. bidiagonal reduction, parallel algorithms AMS subject classifications. 15A18, 65F30, 68W10 DOI. 10.1137/05062809X 1. Introduction. The problem of computing the singular value decomposition (SVD) of a matrix is one of the most important operations in numerical linear algebra and is employed in a variety of applications. The SVD is defined as follows. × For any rectangular matrix A ∈ Rm n (we will assume that m ≥ n), there exist ∈ Rm×m ∈ Rn×n ΣA ∈ Rm×n two orthogonal matrices U and V and a matrix Σ = 0 , t where ΣA = diag (σ1,...,σn) is a diagonal matrix, such that A = UΣV .
    [Show full text]
  • Minimum-Residual Methods for Sparse Least-Squares Using Golub-Kahan Bidiagonalization a Dissertation Submitted to the Institute
    MINIMUM-RESIDUAL METHODS FOR SPARSE LEAST-SQUARES USING GOLUB-KAHAN BIDIAGONALIZATION A DISSERTATION SUBMITTED TO THE INSTITUTE FOR COMPUTATIONAL AND MATHEMATICAL ENGINEERING AND THE COMMITTEE ON GRADUATE STUDIES OF STANFORD UNIVERSITY IN PARTIAL FULFILLMENT OF THE REQUIREMENTS FOR THE DEGREE OF DOCTOR OF PHILOSOPHY David Chin-lung Fong December 2011 © 2011 by Chin Lung Fong. All Rights Reserved. Re-distributed by Stanford University under license with the author. This dissertation is online at: http://purl.stanford.edu/sd504kj0427 ii I certify that I have read this dissertation and that, in my opinion, it is fully adequate in scope and quality as a dissertation for the degree of Doctor of Philosophy. Michael Saunders, Primary Adviser I certify that I have read this dissertation and that, in my opinion, it is fully adequate in scope and quality as a dissertation for the degree of Doctor of Philosophy. Margot Gerritsen I certify that I have read this dissertation and that, in my opinion, it is fully adequate in scope and quality as a dissertation for the degree of Doctor of Philosophy. Walter Murray Approved for the Stanford University Committee on Graduate Studies. Patricia J. Gumport, Vice Provost Graduate Education This signature page was generated electronically upon submission of this dissertation in electronic format. An original signed hard copy of the signature page is on file in University Archives. iii iv ABSTRACT For 30 years, LSQR and its theoretical equivalent CGLS have been the standard iterative solvers for large rectangular systems Ax = b and least-squares problems min Ax b . They are analytically equivalent − to symmetric CG on the normal equation ATAx = ATb, and they reduce r monotonically, where r = b Ax is the k-th residual vector.
    [Show full text]
  • Restarted Lanczos Bidiagonalization for the SVD in Slepc
    Scalable Library for Eigenvalue Problem Computations SLEPc Technical Report STR-8 Available at http://slepc.upv.es Restarted Lanczos Bidiagonalization for the SVD in SLEPc V. Hern´andez J. E. Rom´an A. Tom´as Last update: June, 2007 (slepc 2.3.3) Previous updates: { About SLEPc Technical Reports: These reports are part of the documentation of slepc, the Scalable Library for Eigenvalue Problem Computations. They are intended to complement the Users Guide by providing technical details that normal users typically do not need to know but may be of interest for more advanced users. Restarted Lanczos Bidiagonalization for the SVD in SLEPc STR-8 Contents 1 Introduction 2 2 Description of the Method3 2.1 Lanczos Bidiagonalization...............................3 2.2 Dealing with Loss of Orthogonality..........................6 2.3 Restarted Bidiagonalization..............................8 2.4 Available Implementations............................... 11 3 The slepc Implementation 12 3.1 The Algorithm..................................... 12 3.2 User Options...................................... 13 3.3 Known Issues and Applicability............................ 14 1 Introduction The singular value decomposition (SVD) of an m × n complex matrix A can be written as A = UΣV ∗; (1) ∗ where U = [u1; : : : ; um] is an m × m unitary matrix (U U = I), V = [v1; : : : ; vn] is an n × n unitary matrix (V ∗V = I), and Σ is an m × n diagonal matrix with nonnegative real diagonal entries Σii = σi for i = 1;:::; minfm; ng. If A is real, U and V are real and orthogonal. The vectors ui are called the left singular vectors, the vi are the right singular vectors, and the σi are the singular values. In this report, we will assume without loss of generality that m ≥ n.
    [Show full text]
  • A Parallel Implementation of Lanczos Algorithm in SVD Computation
    A Parallel Implementation of Lanczos Algorithm in SVD 1 Computation SRIKANTH KALLURKAR Abstract This work presents a parallel implementation of Lanczos algorithm for SVD Computation using MPI. We investigate exe- cution time as a function of matrix sparsity, matrix size, and the number of processes. We observe speedup and slowdown for parallelized Lanczos algorithm. Reasons for the speedups and the slowdowns are discussed in the report. I. INTRODUCTION Singular Value Decomposition (SVD) is an important classical technique which is used for many pur- poses [8]. Deerwester et al [5] described a new method for automatic indexing and retrieval using SVD wherein a large term by document matrix was decomposed into a set of 100 orthogonal factors from which the original matrix was approximated by linear combinations. The method was called Latent Semantic Indexing (LSI). In addition to a significant problem dimensionality reduction it was believed that the LSI had the potential to improve precision and recall. Studies [11] have shown that LSI based retrieval has not produced conclusively better results than vector-space modeled retrieval. Recently, however, there is a renewed interest in SVD based approach to Information Retrieval and Text Mining [4], [6]. The rapid increase in digital and online information has presented the task of efficient information pro- cessing and management. Standard term statistic based techniques may have potentially reached a limit for effective text retrieval. One of key new emerging areas for text retrieval is language models, that can provide not just structural but also semantic insights about the documents. Exploration of SVD based LSI is therefore a strategic research direction.
    [Show full text]
  • Cache Efficient Bidiagonalization Using BLAS 2.5 Operators Howell, G. W. and Demmel, J. W. and Fulton, C. T. and Hammarling, S
    Cache Efficient Bidiagonalization Using BLAS 2.5 Operators Howell, G. W. and Demmel, J. W. and Fulton, C. T. and Hammarling, S. and Marmol, K. 2006 MIMS EPrint: 2006.56 Manchester Institute for Mathematical Sciences School of Mathematics The University of Manchester Reports available from: http://eprints.maths.manchester.ac.uk/ And by contacting: The MIMS Secretary School of Mathematics The University of Manchester Manchester, M13 9PL, UK ISSN 1749-9097 Cache Efficient Bidiagonalization Using BLAS 2.5 Operators∗ G. W. Howell North Carolina State University Raleigh, North Carolina 27695 J. W. Demmel University of California, Berkeley Berkeley, California 94720 C. T. Fulton Florida Institute of Technology Melbourne, Florida 32901 S. Hammarling Numerical Algorithms Group Oxford, United Kingdom K. Marmol Harris Corporation Melbourne, Florida 32901 March 23, 2006 ∗ This research was supported by National Science Foundation Grant EIA-0103642. Abstract On cache based computer architectures using current standard al- gorithms, Householder bidiagonalization requires a significant portion of the execution time for computing matrix singular values and vectors. In this paper we reorganize the sequence of operations for Householder bidiagonalization of a general m × n matrix, so that two ( GEMV) vector-matrix multiplications can be done with one pass of the unre- duced trailing part of the matrix through cache. Two new BLAS 2.5 operations approximately cut in half the transfer of data from main memory to cache. We give detailed algorithm descriptions and com- pare timings with the current LAPACK bidiagonalization algorithm. 1 Introduction A primary constraint on execution speed is the “von Neumann” bottleneck in delivering data to the CPU.
    [Show full text]
  • A High Performance Block Eigensolver for Nuclear Configuration Interaction Calculations Hasan Metin Aktulga, Md
    1 A High Performance Block Eigensolver for Nuclear Configuration Interaction Calculations Hasan Metin Aktulga, Md. Afibuzzaman, Samuel Williams, Aydın Buluc¸, Meiyue Shao, Chao Yang, Esmond G. Ng, Pieter Maris, James P. Vary Abstract—As on-node parallelism increases and the performance gap between the processor and the memory system widens, achieving high performance in large-scale scientific applications requires an architecture-aware design of algorithms and solvers. We focus on the eigenvalue problem arising in nuclear Configuration Interaction (CI) calculations, where a few extreme eigenpairs of a sparse symmetric matrix are needed. We consider a block iterative eigensolver whose main computational kernels are the multiplication of a sparse matrix with multiple vectors (SpMM), and tall-skinny matrix operations. We present techniques to significantly improve the SpMM and the transpose operation SpMMT by using the compressed sparse blocks (CSB) format. We achieve 3–4× speedup on the requisite operations over good implementations with the commonly used compressed sparse row (CSR) format. We develop a performance model that allows us to correctly estimate the performance of our SpMM kernel implementations, and we identify cache bandwidth as a potential performance bottleneck beyond DRAM. We also analyze and optimize the performance of LOBPCG kernels (inner product and linear combinations on multiple vectors) and show up to 15× speedup over using high performance BLAS libraries for these operations. The resulting high performance LOBPCG solver achieves 1.4× to 1.8× speedup over the existing Lanczos solver on a series of CI computations on high-end multicore architectures (Intel Xeons). We also analyze the performance of our techniques on an Intel Xeon Phi Knights Corner (KNC) processor.
    [Show full text]
  • Presto: Distributed Machine Learning and Graph Processing with Sparse Matrices
    Presto: Distributed Machine Learning and Graph Processing with Sparse Matrices Shivaram Venkataraman1 Erik Bodzsar2 Indrajit Roy Alvin AuYoung Robert S. Schreiber 1UC Berkeley, 2University of Chicago, HP Labs [email protected], ferik.bodzsar, indrajitr, alvina, [email protected] Abstract Array-based languages such as R and MATLAB provide It is cumbersome to write machine learning and graph al- an appropriate programming model to express such machine gorithms in data-parallel models such as MapReduce and learning and graph algorithms. The core construct of arrays Dryad. We observe that these algorithms are based on matrix makes these languages suitable to represent vectors and ma- computations and, hence, are inefficient to implement with trices, and perform matrix computations. R has thousands the restrictive programming and communication interface of of freely available packages and is widely used by data min- such frameworks. ers and statisticians, albeit for problems with relatively small In this paper we show that array-based languages such amounts of data. It has serious limitations when applied to as R [3] are suitable for implementing complex algorithms very large datasets: limited support for distributed process- and can outperform current data parallel solutions. Since R ing, no strategy for load balancing, no fault tolerance, and is is single-threaded and does not scale to large datasets, we constrained by a server’s DRAM capacity. have built Presto, a distributed system that extends R and 1.1 Towards an efficient distributed R addresses many of its limitations. Presto efficiently shares sparse structured data, can leverage multi-cores, and dynam- We validate our hypothesis that R can be used to efficiently ically partitions data to mitigate load imbalance.
    [Show full text]
  • Comparison of Numerical Methods and Open-Source Libraries for Eigenvalue Analysis of Large-Scale Power Systems
    applied sciences Article Comparison of Numerical Methods and Open-Source Libraries for Eigenvalue Analysis of Large-Scale Power Systems Georgios Tzounas , Ioannis Dassios * , Muyang Liu and Federico Milano School of Electrical and Electronic Engineering, University College Dublin, Belfield, Dublin 4, Ireland; [email protected] (G.T.); [email protected] (M.L.); [email protected] (F.M.) * Correspondence: [email protected] Received: 30 September 2020; Accepted: 24 October 2020; Published: 28 October 2020 Abstract: This paper discusses the numerical solution of the generalized non-Hermitian eigenvalue problem. It provides a comprehensive comparison of existing algorithms, as well as of available free and open-source software tools, which are suitable for the solution of the eigenvalue problems that arise in the stability analysis of electric power systems. The paper focuses, in particular, on methods and software libraries that are able to handle the large-scale, non-symmetric matrices that arise in power system eigenvalue problems. These kinds of eigenvalue problems are particularly difficult for most numerical methods to handle. Thus, a review and fair comparison of existing algorithms and software tools is a valuable contribution for researchers and practitioners that are interested in power system dynamic analysis. The scalability and performance of the algorithms and libraries are duly discussed through case studies based on real-world electrical power networks. These are a model of the All-Island Irish Transmission System with 8640 variables; and, a model of the European Network of Transmission System Operators for Electricity, with 146,164 variables. Keywords: eigenvalue analysis; large non-Hermitian matrices; numerical methods; open-source libraries 1.
    [Show full text]