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

Need method *(::SparseMatrixCSC, ::Diagonal) #14416

Closed
sglyon opened this issue Dec 15, 2015 · 1 comment
Closed

Need method *(::SparseMatrixCSC, ::Diagonal) #14416

sglyon opened this issue Dec 15, 2015 · 1 comment
Labels
sparse Sparse arrays

Comments

@sglyon
Copy link
Contributor

sglyon commented Dec 15, 2015

julia> X = speye(3)
3x3 sparse matrix with 3 Float64 entries:
    [1, 1]  =  1.0
    [2, 2]  =  1.0
    [3, 3]  =  1.0

julia> y = Diagonal([1.0, 2.0, 3.0])
3x3 Diagonal{Float64}:
 1.0  0.0  0.0
 0.0  2.0  0.0
 0.0  0.0  3.0

julia> X*y
ERROR: MethodError: `*` has no method matching *(::SparseMatrixCSC{Float64,Int64}, ::Diagonal{Float64})
Closest candidates are:
  *(::Any, ::Any, ::Any, ::Any...)
  *{T<:Number}(::T<:Number, ::Diagonal{T})
  *(::Diagonal{T}, ::Diagonal{T})
  ...
@jiahao
Copy link
Member

jiahao commented Dec 16, 2015

Ref: JuliaLang/LinearAlgebra.jl#136

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sparse Sparse arrays
Projects
None yet
Development

No branches or pull requests

3 participants