Skip to content

Commit

Permalink
fix conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
dkarrasch committed Mar 5, 2021
1 parent 7d2f2a5 commit 989dd10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/conversion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ SparseArrays.SparseMatrixCSC(A::LinearMap) = sparse(A)
Base.Matrix{T}(A::ScaledMap{<:Any, <:Any, <:VecOrMatMap}) where {T} =
convert(Matrix{T}, A.λ * A.lmap.lmap)
SparseArrays.sparse(A::ScaledMap{<:Any, <:Any, <:VecOrMatMap}) =
convert(AbstractSparseArray, A.λ * A.lmap.lmap)
A.λ * sparse(A.lmap.lmap)

# UniformScalingMap
Base.Matrix{T}(J::UniformScalingMap) where {T} = Matrix{T}(J.λ*I, size(J))
Expand Down

0 comments on commit 989dd10

Please sign in to comment.