Algorithms Multi-threaded Algorithms suggest change

Square matrix multiplication multithread

multiply-square-matrix-parallel(A, B)
    n = A.lines         
    C = Matrix(n,n) //create a new matrix n*n
    parallel for i = 1 to n
        parallel for j = 1 to n
            C[i][j] = 0
            pour k = 1 to n
                C[i][j] = C[i][j] + A[i][k]*B[k][j]
    return C

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents