Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

The program performs the multiplication C * (A * B) between matrices of float using multithreading.

Notifications You must be signed in to change notification settings

EmptySpace99/Parallel-Matrix-Multiplication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

5 Commits

Repository files navigation

Parallel Matrix Multiplication

How it works?

A very simple way of parallelizing matrix calculations is based on decompositions into blocks of the matrices on which one operates.

Example: we consider a matrix A (M x N) and a vector V (N x 1).

In the row decomposition matrix A is divided into T blocks of R rows (M = TxR)

Each block RxN can then be multiplied by V obtaining a new vector R x 1

By concatenating the resulting T vectors (see figure below) we obtain the vector A x V (M x 1).

Cattura

What it does?

More precisely, the program performs the multiplication C * (A * B) between matrices of float where:

• A is an MxN matrix,

• B is an NxP matrix,

• C is a PxM matrix

To take advantage of multithreading I used row decomposition to calculate both R = A * B that C * R (the result is a PxP matrix).

About

The program performs the multiplication C * (A * B) between matrices of float using multithreading.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /