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 Jan 4, 2025
1 parent 2415f9e commit 354ae38
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 @@ -413,7 +413,6 @@ CurrentModule = LazySets
```
```@docs
linear_map(::AbstractMatrix, ::LazySet; kwargs...)
linear_map(::Number, ::LazySet; kwargs...)
project(::LazySet, ::AbstractVector{Int}, ::Nothing=nothing, ::Int=dim(X))
project(::LazySet, ::AbstractVector{Int}, ::Type{<:LazySet}, ::Int=dim(X))
project(::LazySet, ::AbstractVector{Int}, ::Pair{<:UnionAll,<:Real}, ::Int=dim(X))
Expand Down
9 changes: 0 additions & 9 deletions src/Interfaces/LazySet.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1564,15 +1564,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

"""
# Extended help
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 354ae38

Please sign in to comment.