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

Remove scalar linear_map #3729

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading