Are you sure? The error message seems to be generated by a different function call.
On Tue, May 3, 2016 at 6:16 AM, new to Julia <[email protected]> wrote: > Thanks for your reply. > A=sparse(nrow,ncol,vals_final); > nrow, ncol, vals_final are all 1 dimensional vector. > > On Monday, May 2, 2016 at 11:10:12 PM UTC-5, Michele Zaffalon wrote: >> >> Can you post the code that generate the error? >> >> On Tue, May 3, 2016 at 5:47 AM, new to Julia <[email protected]> wrote: >> >>> Hi all: >>> >>> when I use sparse function in Julia coding, I have the following error: >>> >>> LoadError: MethodError: `sparse` has no method matching >>> sparse(::Array{Float64,1}, ::Array{Float64,1}, ::Array{Float64,1}, ::Int64, >>> ::Int64, ::Base.AddFun) >>> Closest candidates are: >>> sparse(::Any, ::Any, ::AbstractArray{T,1}, ::Any, ::Any) >>> sparse(::Any, ::Any, !Matched::Number, ::Any, ::Any, >>> ::Union{Base.Func{N},Function}) >>> sparse(::Any, ::Any, !Matched::AbstractArray{Bool,1}, ::Any, ::Any) >>> ... >>> in sparse at sparse/sparsematrix.jl:380 >>> >>> I am wondering that how can I fix the bug? Thank you very much. >>> >>> Best >>> >>> >>> >>> >>
