Skip to content

Commit

Permalink
Merge pull request #194 from JuliaReach/schillic/multiplication
Browse files Browse the repository at this point in the history
Avoid one multiplication
  • Loading branch information
schillic committed Oct 26, 2021
2 parents feac492 + ecf57a4 commit 1d39696
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/exponential.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function quadratic_expansion(A::IntervalMatrix, α::Real, β::Real)
@inbounds for j in 1:n
for i in 1:n
i == j && continue
B[i, j] = A[i, j] *+ β*A[j, j] + β*A[i, i])
B[i, j] = A[i, j] *+ β*(A[j, j] + A[i, i]))
for k in 1:n
(k == i || k == j) && continue
B[i, j] += β * (A[i, k] * A[k, j])
Expand Down

0 comments on commit 1d39696

Please sign in to comment.