Skip to content

Commit

Permalink
add test for non-square linear_map of Interval
Browse files Browse the repository at this point in the history
  • Loading branch information
schillic committed Jul 11, 2024
1 parent e744692 commit 7f17098
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/Sets/Interval.jl
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,10 @@ for N in [Float64, Float32, Rational{Int}]
M = hcat(N[2])
v = N[-3]
@test affine_map(M, I1, v) == Interval(N(-3), N(-1))
M = N[2; -2;;]
v = N[-1, -1]
H = affine_map(M, I1, v)
@test H isa Zonotope && isequivalent(H, LineSegment(N[-1, -1], N[1, -3]))

# exponential_map
@test exponential_map(M, I1) == Interval(N(0), N(exp(N(2))))
Expand Down

0 comments on commit 7f17098

Please sign in to comment.