Skip to content

Commit 6661752

Browse files
authored
Update 06_Direct_methods.jl (#18)
1 parent e22d435 commit 6661752

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/06_Direct_methods.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1354,7 +1354,7 @@ function matrix_vector_product(A, x)
13541354

13551355
for i in 1:size(A, 1)
13561356
for j in 1:size(A, 2)
1357-
y[i] = y[i] + A[i, j] * y[j] # (*)
1357+
y[i] = y[i] + A[i, j] * x[j] # (*)
13581358
end
13591359
end
13601360
result

0 commit comments

Comments
 (0)