From the course: Complete Guide to Parallel and Concurrent Programming with Java
Unlock this course with a free trial
Join today to access over 24,800 courses taught by industry experts.
Challenge: Matrix multiply in Java - Java Tutorial
From the course: Complete Guide to Parallel and Concurrent Programming with Java
Challenge: Matrix multiply in Java
(light 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 stored as a two dimensional array of integer values. The first dimension of the array indexes rows of the matrix and is usually represented with the variable letter I and the second dimension indexes columns and is represented with the letter J. So for example, if the first array 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 two subscripts like this with the first subscript indicating the row and the second indicating the column. When it comes to multiplication, two matrices can be multiplied together if the number of columns in the first…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
-
-
-
-
Welcome to the challenges39s
-
(Locked)
Challenge: Matrix multiply in Java5m 4s
-
(Locked)
Solution: Matrix multiply in Java6m 20s
-
(Locked)
Challenge: Merge sort in Java4m 34s
-
(Locked)
Solution: Merge sort in Java3m 47s
-
(Locked)
Challenge: Download images in Java2m 34s
-
(Locked)
Solution: Download images in Java4m 3s
-
-