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

Ambiguity for gemv! #23

Open
sw2030 opened this issue Jul 14, 2019 · 0 comments
Open

Ambiguity for gemv! #23

sw2030 opened this issue Jul 14, 2019 · 0 comments

Comments

@sw2030
Copy link
Collaborator

sw2030 commented Jul 14, 2019

ERROR: MethodError: LinearAlgebra.BLAS.gemv!(::Char, ::Float64, ::DIA.SparseMatrixDIA{Float64,Int64,Array{Float64,1}}, ::Array{Float64,1}, ::Float64, ::Array{Float64,1}) is ambiguous. Candidates:
  gemv!(tA::Char, alpha::Number, S::DIA.SparseMatrixDIA{Tv1,Ti,V}, b::Array{Tv2,1}, beta::Number, ret::Array{Tv2,1}) where {Tv1, Tv2, Ti, V} in DIA at /home/sw2030/.julia/packages/DIA/n7m9K/src/linalg.jl:113
  gemv!(trans::AbstractChar, alpha::Float64, A::Union{AbstractArray{Float64,1}, AbstractArray{Float64,2}}, X::AbstractArray{Float64,1}, beta::Float64, Y::AbstractArray{Float64,1}) in LinearAlgebra.BLAS at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/LinearAlgebra/src/blas.jl:567
Possible fix, define
  gemv!(::Char, ::Float64, ::DIA.SparseMatrixDIA{Float64,Ti,V}, ::Array{Float64,1}, ::Float64, ::Array{Float64,1})

where type of input DIA was

julia> typeof(Pp), typeof(g)
(DIA.SparseMatrixDIA{Float64,Int64,Array{Float64,1}}, Array{Float64,1})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant