Skip to content

Commit

Permalink
fixed matmul example (#31415)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtomassoli authored and andreasnoack committed Mar 28, 2019
1 parent 7b45b7b commit 5669ff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/src/manual/methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ function matmul(a::AbstractMatrix, b::AbstractMatrix)
output = similar(b, R, (size(a, 1), size(b, 2)))
if size(a, 2) > 0
for j in 1:size(b, 2)
for i in 1:size(b, 1)
for i in 1:size(a, 1)
## here we don't use `ab = zero(R)`,
## since `R` might be `Any` and `zero(Any)` is not defined
## we also must declare `ab::R` to make the type of `ab` constant in the loop,
Expand Down

0 comments on commit 5669ff0

Please sign in to comment.