-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3607 from JuliaReach/schillic/requires
Rename `load_*` functions in set modules
- Loading branch information
Showing
17 changed files
with
47 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
eval(load_distributions_samples()) | ||
eval(load_Distributions_sample()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
function __init__() | ||
@require Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f" eval(load_distributions_samples()) | ||
@require Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f" eval(load_Distributions_sample()) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
function load_genmat_ballinf_static() | ||
function load_StaticArraysCore_genmat() | ||
return quote | ||
using StaticArraysCore: SMatrix, SVector, MMatrix | ||
using StaticArraysCore: SVector | ||
|
||
function genmat(B::BallInf{N,SVector{L,N}}) where {L,N} | ||
if isflat(B) | ||
return SMatrix{L,0,N,0}() | ||
return StaticArraysCore.SMatrix{L,0,N,0}() | ||
else | ||
gens = zeros(MMatrix{L,L}) | ||
gens = zeros(StaticArraysCore.MMatrix{L,L}) | ||
@inbounds for i in 1:L | ||
gens[i, i] = B.radius | ||
end | ||
return SMatrix(gens) | ||
return StaticArraysCore.SMatrix(gens) | ||
end | ||
end | ||
end | ||
end # quote / load_genmat_ballinf_static() | ||
end # load_StaticArraysCore_genmat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
function __init__() | ||
@require StaticArraysCore = "1e83bf80-4336-4d27-bf5d-d5a4f845583c" eval(load_genmat_ballinf_static()) | ||
@require StaticArraysCore = "1e83bf80-4336-4d27-bf5d-d5a4f845583c" eval(load_StaticArraysCore_genmat()) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
function __init__() | ||
@require LazySets = "b4f0291d-fe17-52bc-9479-3d1a343d9043" include("init_LazySets.jl") | ||
@require Polyhedra = "67491407-f73d-577b-9b50-8179a7c68029" include("init_Polyhedra.jl") | ||
@require Symbolics = "0c5d862f-8b57-4792-8d23-62f2024744c7" eval(load_symbolics_hpolyhedron()) | ||
@require Symbolics = "0c5d862f-8b57-4792-8d23-62f2024744c7" eval(load_Symbolics_HPolyhedron()) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
function __init__() | ||
@require LazySets = "b4f0291d-fe17-52bc-9479-3d1a343d9043" include("init_LazySets.jl") | ||
@require Polyhedra = "67491407-f73d-577b-9b50-8179a7c68029" include("init_Polyhedra.jl") | ||
@require Symbolics = "0c5d862f-8b57-4792-8d23-62f2024744c7" eval(load_symbolics_hpolytope()) | ||
@require Symbolics = "0c5d862f-8b57-4792-8d23-62f2024744c7" eval(load_Symbolics_HPolytope()) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
function __init__() | ||
@require IntervalArithmetic = "d1acc4aa-44c8-5952-acd4-ba5d80a2a253" eval(load_IntervalArithmetic_convert()) | ||
@require StaticArraysCore = "1e83bf80-4336-4d27-bf5d-d5a4f845583c" eval(load_genmat_hyperrectangle_static()) | ||
@require StaticArraysCore = "1e83bf80-4336-4d27-bf5d-d5a4f845583c" eval(load_StaticArraysCore_genmat()) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
using .RangeEnclosures: enclose | ||
|
||
eval(load_RangeEnclosures_rho()) | ||
eval(load_RangeEnclosures_support_function()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
using StaticArraysCore: SMatrix, SVector, MMatrix, MVector | ||
|
||
eval(load_split_static()) | ||
eval(load_reduce_order_static_zonotope()) | ||
eval(load_StaticArraysCore_split()) | ||
eval(load_StaticArraysCore_reduce_order()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
function load_reduce_order_static_zonotope() | ||
function load_StaticArraysCore_reduce_order() | ||
return quote | ||
using .StaticArraysCore: MMatrix | ||
using ..LazySets: AbstractReductionMethod | ||
|
||
# conversion for static matrix | ||
function reduce_order(Z::Zonotope{N,<:AbstractVector,<:MMatrix}, r::Real, | ||
method::AbstractReductionMethod=GIR05()) where {N} | ||
return reduce_order(Zonotope(center(Z), SMatrix(genmat(Z))), r, method) | ||
return reduce_order(Zonotope(center(Z), StaticArraysCore.SMatrix(genmat(Z))), r, method) | ||
end | ||
end | ||
end # quote / load_reduce_order_static_zonotope | ||
end # load_StaticArraysCore_reduce_order |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters