Skip to content

Commit

Permalink
make Integer type parameters concrete Int
Browse files Browse the repository at this point in the history
  • Loading branch information
schillic committed Feb 25, 2024
1 parent b0fc68c commit 4e1be1b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/src/man/reach_zonotopes_hybrid.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ using Plots, LazySets, LinearAlgebra
function reach_hybrid(As, Ts, init, δ, μ, T, max_order, instant_transitions)
# initialize queue with initial mode and states at time t=0
queue = Vector{Tuple{LazySet, Integer, Float64}}(undef, 1)
queue = Vector{Tuple{LazySet,Int,Float64}}(undef, 1)
queue[1] = (init[1], init[2], 0.0)
res = Tuple{LazySet, Int}[]
Expand Down
6 changes: 3 additions & 3 deletions src/Sets/SimpleSparsePolynomialZonotope.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export SimpleSparsePolynomialZonotope, PolynomialZonotope, expmat, nparams,
"""
SimpleSparsePolynomialZonotope{N, VN<:AbstractVector{N},
MN<:AbstractMatrix{N},
ME<:AbstractMatrix{<:Integer}}
ME<:AbstractMatrix{Int}}
<: AbstractPolynomialZonotope{N}
Type that represents a sparse polynomial zonotope that is *simple* in the sense
Expand Down Expand Up @@ -39,7 +39,7 @@ JuliaReach and JuliaIntervals Days 3, 2021.
"""
struct SimpleSparsePolynomialZonotope{N,VN<:AbstractVector{N},
MN<:AbstractMatrix{N},
ME<:AbstractMatrix{<:Integer}} <:
ME<:AbstractMatrix{Int}} <:
AbstractPolynomialZonotope{N}
c::VN
G::MN
Expand All @@ -49,7 +49,7 @@ struct SimpleSparsePolynomialZonotope{N,VN<:AbstractVector{N},
E::ME) where {N,
VN<:AbstractVector{N},
MN<:AbstractMatrix{N},
ME<:AbstractMatrix{<:Integer}}
ME<:AbstractMatrix{Int}}
@assert length(c) == size(G, 1) throw(DimensionMismatch("c and G " *
"should have the same number of rows"))
@assert size(G, 2) == size(E, 2) throw(DimensionMismatch("G and E " *
Expand Down
12 changes: 6 additions & 6 deletions src/Sets/SparsePolynomialZonotope.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ export SparsePolynomialZonotope, expmat, nparams, ngens_dep, ngens_indep,
"""
SparsePolynomialZonotope{N, VN<:AbstractVector{N}, MN<:AbstractMatrix{N},
MNI<:AbstractMatrix{N},
ME<:AbstractMatrix{<:Integer},
VI<:AbstractVector{<:Integer}}
ME<:AbstractMatrix{Int},
VI<:AbstractVector{Int}}
<: AbstractPolynomialZonotope{N}
Type that represents a sparse polynomial zonotope.
Expand Down Expand Up @@ -47,8 +47,8 @@ struct SparsePolynomialZonotope{N,
VN<:AbstractVector{N},
MN<:AbstractMatrix{N},
MNI<:AbstractMatrix{N},
ME<:AbstractMatrix{<:Integer},
VI<:AbstractVector{<:Integer}} <: AbstractPolynomialZonotope{N}
ME<:AbstractMatrix{Int},
VI<:AbstractVector{Int}} <: AbstractPolynomialZonotope{N}
c::VN
G::MN
GI::MNI
Expand All @@ -60,8 +60,8 @@ struct SparsePolynomialZonotope{N,
idx::VI=uniqueID(size(E, 1))) where {N,VN<:AbstractVector{N},
MN<:AbstractMatrix{N},
MNI<:AbstractMatrix{N},
ME<:AbstractMatrix{<:Integer},
VI<:AbstractVector{<:Integer}}
ME<:AbstractMatrix{Int},
VI<:AbstractVector{Int}}
@assert length(c) == size(G, 1) throw(DimensionMismatch("c and G " *
"should have the same number of rows"))
@assert length(c) == size(GI, 1) throw(DimensionMismatch("c and GI " *
Expand Down

0 comments on commit 4e1be1b

Please sign in to comment.