Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor + small improvements in order reduction functions #155

Merged
merged 2 commits into from
May 5, 2020

Conversation

mforets
Copy link
Member

@mforets mforets commented May 2, 2020

julia> Z = Zonotope(rand(4), rand(4, 8) .- 0.5);

julia> Zst = Zonotope(SVector{4}(Z.center), SMatrix{4, 8}(Z.generators));

julia> @btime ReachabilityAnalysis._reduce_order($Z, 1); # master
  525.942 ns (19 allocations: 1.50 KiB)

julia> @btime ReachabilityAnalysis._reduce_order($Zst, 1);  # master
  418.739 ns (11 allocations: 1.20 KiB)

julia> @btime ReachabilityAnalysis._reduce_order($Z, 1);   # new
  321.116 ns (8 allocations: 624 bytes)

julia> @btime ReachabilityAnalysis._reduce_order($Zst, 1); # new
  273.169 ns (7 allocations: 560 bytes)

@mforets mforets merged commit 5a8aa38 into master May 5, 2020
@mforets mforets deleted the mforets/review_reduction branch June 17, 2020 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant