Le jeudi 11 septembre 2014 à 20:12 -0700,
i.pallikarakis...@alumni.lboro.ac.uk a écrit :
> Hi everyone,
> 
> 
> 
> I am new to Julia and just upgraded from 0.2.1 to 0.3.0 and found the
> following issue :
> find function is no longer working on sparse matrices. For example
> A=speye(Bool,10)
> find(x->x==true,A)
> ->0-element Array{Int64,1}
> 
> 
> find(x->x==true,full(A))
> 
> ->10-element Array{Int64,1}:
>    1
>   12
>   23
>   34
>   45
>   56
>   67
>   78
>   89
>  100
> 
> 
> Is this normal ?
Thanks for the reproducible report. I don't think this is normal indeed.
I've made a pull request to fix this here:
https://github.com/JuliaLang/julia/pull/8323

But the code you're calling above is equivalent to find(A), which works
fine, and which is specialized for sparse matrices, meaning it's more
efficient.


Regards

Reply via email to