3 3 Matrices - Math - The University of Utah
We call this matrix the 3 ⇥ 3 identity matrix ***** *** Matrix multiplication You can “multiply” two 3⇥3matricestoobtainanother3⇥3matrix Order the columns of a matrix from left to right, so that the 1st column is on the left, the 2nd column is directly to the right of the 1st,andthe3rd column is to the right of the 2nd
Nur Dean - City University of New York
Parallel Algorithms for Matrix Multiplication Example 3x3 Fox’s Algorithm Stage 2: Process (i;(i + 2) mod3) Broadcast along row i (0,2) a 02 (1,0) a 10 (2,1) a 21 a 02;b 20 a 02;b 21 a 02;b 22 a 10;b 00 a 10;b 01 a 10;b 02 a 21 01
Matrix Multiplication : When the number of columns of the first
matrix is the same as the number of rows in the second matrix then matrix multiplication can be performed Here is an example of matrix multiplication for two 2x2 matrices Here is an example of matrices multiplication for a 3x3 matrix When A has dimensions mxn, B has dimensions nxp Then the product of A and B is the matrix C, which has
Systolic Architectures - Computer Action Team
3x3 Systolic Array Matrix Multiplication b2,2 b2,1 b1,2 b2,0 b1,1 b0,2 b1,0 b0,1 b0,0 a0,2 a0,1 a0,0 a1,2 a1,1 a1,0 a2,2 a2,1 a2,0 Alignments in time • Processors arranged in a 2-D grid • Each processor accumulates one element of the product Rows of A Columns of B T = 0
Matrix Multiplication - Oakland University
answer is located on the matrix by the LED’s displaying the position on the matrix I INTRODUCTION For our ECE 378 we have decided to make a 2 x 2 matrix multiplier and a 3 x 3 matrix multiplier A matrix multiplication is a binary operation that takes a pair of matrices, and produces another matrix While a matrix are
Matrix Multiplication - University of Plymouth
Section 3: Matrix Multiplication 2 9 3 Matrix Multiplication 2 The extension of the concept of matrix multiplication to matrices, A, B, in which A has more than one row and B has more than one column is now possible The product matrix AB will have the same number of columns as B and each column is obtained by taking the
Matrix multiplication
Matrix multiplication 3x4 matrix 4x2 matrix The multiplication is legal since 2 3 4 5 1 3 number of columns of A is the
Matrices, transposes, and inverses
Feb 01, 2012 · Matrix multiplication For m x n matrix A and n x p matrix B, the matrix product AB is an m x p matrix “outer” parameters become parameters of matrix AB What sizes of matrices can be multiplied together? If A is a square matrix and k is a positive integer, we define Ak = A · A···A k factors Properties of matrix multiplication
[PDF] produit de 3 matrices
[PDF] calculatrice matrice en ligne
[PDF] produit de deux matrices de taille différentes
[PDF] nombre relatif multiplication et division
[PDF] multiplication de nombres relatifs 4ème exercices
[PDF] variable aléatoire pdf
[PDF] variable aléatoire discrète
[PDF] fonction de répartition d'une variable aléatoire discrète
[PDF] variable aléatoire exemple
[PDF] soliman et françois 1er
[PDF] fonction de distribution statistique
[PDF] produit scalaire deux vecteurs
[PDF] produit vectoriel de deux vecteurs dans le plan
[PDF] fonction de répartition d une variable aléatoire discrète
Matrix Multiplication
Nur Dean
PhD Program in Computer Science
The Graduate Center, CUNY
05/01/2017
Nur Dean (The Graduate Center)Matrix Multiplication05/01/2017 1 / 36 Today, I will talk about matrix multiplication and 2 parallel algorithms to use for my matrix multiplication calculation. Nur Dean (The Graduate Center)Matrix Multiplication05/01/2017 2 / 36Overview
1Background
Denition of A Matrix
Matrix Multiplication
2Sequential Algorithm
3Parallel Algorithms for Matrix Multiplication
Checkerboard
Fox's Algorithm
Example 3x3 Fox's Algorithm
Fox`s Algorithm Psuedocode
Analysis of Fox's Algorithm
SUMMA:Scalable Universal Matrix Multiplication AlgorithmExample 3x3 SUMMA Algorithm
SUMMA Algorithm
Analysis of SUMMA
Nur Dean (The Graduate Center)Matrix Multiplication05/01/2017 3 / 36BackgroundDenition of A Matrix
Denition of A Matrix
A matrix is a rectangular two-dimensional array of numbersWe say a matrix ismxnif it hasmrows andncolumns.We useaijto refer to the entry inithrow andjthcolumn of the
matrixA.Nur Dean (The Graduate Center)Matrix Multiplication05/01/2017 4 / 36BackgroundMatrix Multiplication
Matrix multiplication is a fundamental linear algebra operation that is at the core of many important numerical algorithms.IfA,B, andCareNxNmatrices, thenC=ABis also anNxN matrix, and the value of each element inCis dened as: C ij=PN k=0AikBkjNur Dean (The Graduate Center)Matrix Multiplication05/01/2017 5 / 36Sequential Algorithm
Algorithm 1Sequential Algorithmfor(i=0;iouter loop (loop variablei) iteration.Nur Dean (The Graduate Center)Matrix Multiplication05/01/2017 7 / 36
Sequential Algorithm
As each result matrix element is a scalar product of the initial matrixA row and the initial matrixBcolumn, it is necessary to carry outn2(2n1) operations to compute all elements of the matrixC. As a result the time complexity of matrix multiplication is; T1=n2(2n1)
whereis the execution time for an elementary computational operation such as multiplication or addition. Nur Dean (The Graduate Center)Matrix Multiplication05/01/2017 8 / 36 Parallel Algorithms for Matrix MultiplicationCheckerboardCheckerboard
Most parallel matrix multiplication functions use a checkerboard distribution of the matrices. This means that the processes are viewed as a grid, and, rather than assigning entire rows or entire columns to each process, we assign small sub-matrices. For example, if we have four processes, we might assign the element of a 4x4 matrix as shown below, checkerboard mapping of a 4x4 matrix to four processes.Process 0 a 00a01 a10a11Process 1
a 02a03 a12a13Process 2
a 20a21 a30a31Process 3
a 22a23a
32a33Nur Dean (The Graduate Center)Matrix Multiplication05/01/2017 9 / 36
Parallel Algorithms for Matrix MultiplicationFox's AlgorithmFox's Algorithm
Process 0
a 00a01 a10a11Process 1
a 02a03 a12a13Process 2
a 20a21 a30a31Process 3
a 22a23a
32a33Fox`s algorithm is a one that distributes the matrix using a
checkerboard scheme like the above.In order to simplify the discussion, lets assume that the matrices have
ordern, and the number of processes,p, equalsn2. Then acheckerboard mapping assignsaij,bij, andcijto process (i;j).In a process grid like the above, the process (i,j) is the same as
processp=in+j, or, loosely, process (i;j) using row major form in the process grid. Nur Dean (The Graduate Center)Matrix Multiplication05/01/2017 10 / 36 Parallel Algorithms for Matrix MultiplicationFox's AlgorithmCont. Fox's Algorithm
Fox`s algorithm takesnstages for matrices of ordernone stage for each termaikbkjin the dot product Cij=ai0b0j+ai1b1i+. . . +ai;n1bn1;jInitial stage, each process multiplies the diagonal entry ofAin its
process row by its element ofB: Stage 0 on process(i;j):cij=aiibijNext stage, each process multiplies the element immediately to the right of the diagonal ofAby the element ofBdirectly beneath its own element ofB:Stage 1 on process(i;j):cij=cij+ai;i+1bi+1;jIn general, during thekthstage, each process multiplies the elementk
columns to the right of the diagonal ofAby the elementkrows below its own element ofB:Stagekon process(i;j):cij=cij+ai;i+kbi+k;jNur Dean (The Graduate Center)Matrix Multiplication05/01/2017 11 / 36
Parallel Algorithms for Matrix MultiplicationFox's Algorithm