Skip to content

Commit

Permalink
Merge pull request #514 from JuliaReach/schillic/sum
Browse files Browse the repository at this point in the history
#121 - Use keyword argument form of 'sum'
  • Loading branch information
schillic authored Aug 12, 2018
2 parents db78416 + d912705 commit 8a872c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Zonotope.jl
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ function reduce_order(Z::Zonotope{N}, r)::Zonotope{N} where {N<:Real}
rg = G[:, ind[1:m]] # reduced generators

# interval hull computation of reduced generators
Gbox = diagm(sum(abs.(rg), 2)[:])
Gbox = diagm(Compat.sum(abs.(rg), dims=2)[:])
if m < p
Gnotred = G[:, ind[m+1:end]]
Gred = [Gnotred Gbox]
Expand Down

0 comments on commit 8a872c0

Please sign in to comment.