From the course: Parallel and Concurrent Programming with C++ Part 2

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Challenge: Matrix multiply

Challenge: Matrix multiply - C++ Tutorial

From the course: Parallel and Concurrent Programming with C++ Part 2

Start my 1-month free trial

Challenge: Matrix multiply

(upbeat music) - [Instructor] Your goal for this challenge is to design and build a parallel program that calculates the product of two matrices, which is a common mathematical operation that can benefit a lot from parallel computation. Each matrix will be represented in C plus plus as a two dimensional array of arrays. The first index corresponds to rows of the matrix and is usually represented with the variable letter I and the second index corresponds to columns, represented with the letter J. So for example, if the first index value is zero, that refers to the top row of the matrix and if the second value is two, that identifies the element at index two along that top row. It's common to represent the individual elements of a matrix using notation with subscripts like this. With the first subscript indicating the row and to the second subscript indicating the column. When it comes to multiplication, two matrices can be…

Contents