CSc-387 Parallel Processing CHAPTER 10 : NUMERICAL ALGORITHMS ================================= MATRICES ======== (* T Figure 10.1 *) Matrix-Vector Multiplication: Given NxN matrix A and Nx1 vector b. Compute C = A*b (* T Figure 10.3 *) Matrix Multiplication: Given (n x n) square matrices A and B. Compute C = A x B (* T Figure 10.2 *) Sequential code for Matrix-Multiplication: ------------------------------------------ (** C = A*B **) for (i=0; i Tpar = O(logN) If there are fewer than N processors, then we assign submatrices to processors, and use BLOCK MATRIX MULTIPLICATION: (* T Figure 10.4 *) (* T Figure 10.5 *) s^2 submatrices each having a size of (n/s x n/s). Sequential Code: ---------------- for (p=0; p