Skip to content

Commit

Permalink
replace 'IterTools.product' -> 'Iterators.product'
Browse files Browse the repository at this point in the history
  • Loading branch information
schillic committed Aug 15, 2018
1 parent bf0fee9 commit b61e886
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
julia 0.6
IterTools 0.2.1
RecipesBase 0.3.1
Plots 0.17.4
GR 0.31.0
Expand Down
2 changes: 1 addition & 1 deletion src/AbstractHyperrectangle.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ For high dimensions, it is preferable to develop a `vertex_iterator` approach.
function vertices_list(H::AbstractHyperrectangle{N}
)::Vector{Vector{N}} where {N<:Real}
return [center(H) .+ si .* radius_hyperrectangle(H)
for si in IterTools.product([[1, -1] for i = 1:dim(H)]...)]
for si in Iterators.product([[1, -1] for i = 1:dim(H)]...)][:]
end


Expand Down
2 changes: 1 addition & 1 deletion src/LazySets.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module LazySets

include("compat.jl")

using RecipesBase, IterTools, Requires
using RecipesBase, Requires

export Approximations

Expand Down
2 changes: 1 addition & 1 deletion src/Zonotope.jl
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function vertices_list(Z::Zonotope{N})::Vector{Vector{N}} where {N<:Real}
vlist = Vector{Vector{N}}()
sizehint!(vlist, 2^p)

for ξi in IterTools.product([[1, -1] for i = 1:p]...)
for ξi in Iterators.product([[1, -1] for i = 1:p]...)
push!(vlist, Z.center .+ Z.generators * collect(ξi))
end

Expand Down

0 comments on commit b61e886

Please sign in to comment.