Skip to content

Commit

Permalink
switched to broadcasting operator instead of loop
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacCranko committed Nov 26, 2014
1 parent 74e812c commit 8d502d1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/mc_tools.jl
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,8 @@ function gth_solve{T<:Real}(A::AbstractMatrix{T})
n = k
break
end
for i in k+1:n
A1[i, k] /= scale
end
A1[k+1:n, k] ./= scale

for j in k+1:n, i in k+1:n
A1[i, j] += A1[i, k] * A1[k, j]
end
Expand Down

0 comments on commit 8d502d1

Please sign in to comment.