diff --git a/src/conversion.jl b/src/conversion.jl index a2155ba5..3e69aeb6 100644 --- a/src/conversion.jl +++ b/src/conversion.jl @@ -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))