Skip to content

Commit

Permalink
remove scalar 'linear_map'
Browse files Browse the repository at this point in the history
  • Loading branch information
schillic committed Dec 30, 2024
1 parent bb66e35 commit 7ee026f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion docs/src/lib/interfaces/LazySet.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ radius(::LazySet, ::Real=Inf)
diameter(::LazySet, ::Real=Inf)
isempty(::LazySet, ::Bool=false)
linear_map(::AbstractMatrix, ::LazySet; kwargs...)
linear_map(::Number, ::LazySet; kwargs...)
affine_map(::Any, ::LazySet, ::AbstractVector)
exponential_map(::AbstractMatrix, ::LazySet)
an_element(::LazySet)
Expand Down
9 changes: 0 additions & 9 deletions src/Interfaces/LazySet.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1494,15 +1494,6 @@ function linear_map(M::AbstractMatrix, P::LazySet; kwargs...)
end
end

"""
linear_map(a::Number, X::LazySet; kwargs...)
Alias for `scale(a, X; kwargs...)`.
"""
function linear_map(a::Number, X::LazySet; kwargs...)
return scale(a, X; kwargs...)
end

"""
### Algorithm
Expand Down
2 changes: 0 additions & 2 deletions test/Sets/Interval.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ for N in [Float64, Float32, Rational{Int}]

# concrete linear map
@test linear_map(hcat(N(2)...), x) == Interval(N(2) * x.dat)
# alias for scale
@test linear_map(N(2), x) == Interval(N(2) * x.dat)

# concrete linear map with zonotope output
M2 = hcat(N[1, 2, 3])
Expand Down

0 comments on commit 7ee026f

Please sign in to comment.