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
function vertices_list(H::AbstractHyperrectangle{N}) where {N<:Real} . here N is not used in the body of the function => we can remove it from the signature
function constraints_list(H::AbstractHyperrectangle{N}) where {N<:Real} here N is used to preallocate outputs, constraints = Vector{LinearConstraint{N, SingleEntryVector{N}}}(undef, 2*n) so we keep where {N}
binary operations.... 3i) do nothing if N is not used in the body of the function; remove the type parameter N in both arguments
... 3ii) use promote_type(N, M) if it's used in the function
inner functions where we already know that the arguments are of the same numeric type. for example, _abs_sum , since rho already makes the conversion.
The text was updated successfully, but these errors were encountered:
ref: JuliaReach/LazySets.jl#2276
Draft:
function vertices_list(H::AbstractHyperrectangle{N}) where {N<:Real} . here N is not used in the body of the function => we can remove it from the signature
function constraints_list(H::AbstractHyperrectangle{N}) where {N<:Real} here N is used to preallocate outputs, constraints = Vector{LinearConstraint{N, SingleEntryVector{N}}}(undef, 2*n) so we keep where {N}
binary operations.... 3i) do nothing if N is not used in the body of the function; remove the type parameter N in both arguments
... 3ii) use promote_type(N, M) if it's used in the function
inner functions where we already know that the arguments are of the same numeric type. for example,
_abs_sum
, since rho already makes the conversion.The text was updated successfully, but these errors were encountered: