On Monday, May 2, 2016 at 11:47:49 PM UTC-4, new to Julia wrote:
>
> 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)
>

It looks like you're using arrays of floating point numbers for your `I` 
and `J` indices.  Convert them to arrays of integers and this should work:

A=sparse(map(Int, nrow), map(Int, ncol), vals_final)

Reply via email to