How to switfh off combine functrion in sparse? I need to ingore new value if in data is duplicat row/col. Somthing like this : sparse(I,J,V,m,n,+=0) but this dont work.
Paul
julia> I
4-element Array{Int64,1}:
1
1
2
3
julia> J
4-element Array{Int64,1}:
1
1
2
3
julia> V
4-element Array{Int64,1}:
2
5
1
1
julia> sparse(I,J,V,3,3,*)
3x3 sparse matrix with 3 Int64 entries:
[1, 1] = 10
[2, 2] = 1
[3, 3] = 1
julia> sparse(I,J,V,3,3,+)
3x3 sparse matrix with 3 Int64 entries:
[1, 1] = 7
[2, 2] = 1
[3, 3] = 1
julia> sparse(I,J,V,3,3,/)
ERROR: InexactError()
in convert at int.jl:209
julia> sparse(I,J,V,3,3,div)
3x3 sparse matrix with 3 Int64 entries:
[1, 1] = 0
[2, 2] = 1
[3, 3] = 1