using Test, InteractiveUtils
Z = rand(Zonotope, num_generators=40, dim=4);
order(Z)
@inferred reduce_order(Z, 5)
return type Zonotope{Float64,Array{Float64,1},SparseMatrixCSC{Float64,Int64}} does not match inferred return type Zonotope
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] top-level scope at In[62]:1
Source for a variation of the implementation which does not have this problem: https://github.com/JuliaReach/ReachabilityAnalysis.jl/blob/master/src/Flowpipes/setops.jl#L268