Multiplication matrix vector multithread
suggest changematrix-vector(A,x)
n = A.lines
y = Vector(n) //create a new vector of length n
parallel for i = 1 to n
y[i] = 0
parallel for i = 1 to n
for j = 1 to n
y[i] = y[i] + A[i][j]*x[j]
return y
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents