From d9127054d34e14c07052558531365412e90d2e9a Mon Sep 17 00:00:00 2001 From: schillic Date: Sat, 11 Aug 2018 11:50:39 +0200 Subject: [PATCH] use keyword argument form of 'sum' --- src/Zonotope.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Zonotope.jl b/src/Zonotope.jl index 0d1b88e479..a7fedb1595 100644 --- a/src/Zonotope.jl +++ b/src/Zonotope.jl @@ -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]