Introduction - If you have any usage issues, please Google them yourself
Matrix multiplication
Given two matrices A and B, where A is a matrix with M rows, K columns, B is K rows, N columns are matrices, A, and
The matrix product of B is matrix C, C is M row, and N column. The element J in column I and column C in matrix Cij is the matrix A
Line I, the sum of the products of each element and the matrix B, column J, i.e.
Requirements: each Ci J is computed with an independent worker thread, so it will involve generating M * N worker threads. main
The thread (or parent thread) will initialize the matrix A and B, and enough memory allocated to the C matrix, it will accommodate matrix A
Product of B. These matrices will be declared global data so that each worker thread can access matrices A, B, and C.