I accidentally downloaded version 1.1.0-DEV.699 , and I think I discovered a bug with sparse arrays. So (a) is this a bug, (b) is it known by the developers, and (c) if so, where do I report it. (and (d), and I am the correct page of this forum(
What happens is for simplest of array operations, array addition, I get an “invalid array dimensions” error, even though all array dimensions seem correct; and it depends on the array size.
using Printf
using SparseArrays
function test(ssize)
M1 = spzeros(ssize, ssize)
M2 = spzeros(ssize, ssize)
@printf("size(M1) = %s\n", size(M1))
@printf("size(M2) = %s\n", size(M2))
V = M1 + M2
@printf("size(V) = %s\n", size(V))
end
test(65679) # passes
test(63999) # fails
#test(110233) # fails
Issues · JuliaLang/julia · GitHub Search for similar issues first, then file it. Worst case, someone will point out that it’s a duplicate. Bug reports (especially self-contained examples like yours) are always appreciated.
By “latest master commit” do you mean the latest development version, 1.1.something ? If so, I probably just stumbled on a bad one when I downloaded 1.1.0-DEV.699 (on Nov 20).