You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The type parameter of the normal direction in the half-space type was not added from the beginning. As a consequence there are methods which return non-concretely-typed containers where they shouldn't. For instance,
functionoverapproximate(X::LazySet{N}, dir::AbstractDirections{N}) where {N}
halfspaces =Vector{LinearConstraint{N}}() # ??sizehint!(halfspaces, length(dir))
T =isbounding(dir) ? HPolytope : HPolyhedron
H =T(halfspaces)
for d in dir
addconstraint!(H, LinearConstraint(d, ρ(d, X)))
endreturn H
end
* type constraints_list of hyperrectangular set
* type constraints list of Ball1
* constraints list of cpa
* type for constraints list of ResetMap
* add more type annotations
* more type annotations
* update doctest
* fix last doctest
The type parameter of the normal direction in the half-space type was not added from the beginning. As a consequence there are methods which return non-concretely-typed containers where they shouldn't. For instance,
Searching for
LinearConstraint{N}
reveals other places.For ref: https://docs.julialang.org/en/v1/manual/performance-tips/index.html#Avoid-containers-with-abstract-type-parameters-1
The text was updated successfully, but these errors were encountered: