-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sparse(eye(1000)) hangs on windows #7402
Comments
cc: @ViralBShah @tanmaykm |
Your vectors don't satisfy the conditions of a SparseMatrixCSC object. |
So why does |
Don't know. I can't reproduce the problem on Linux. julia> I1000 = sparse(eye(1000));
julia> names(I1000)
5-element Array{Symbol,1}:
:m
:n
:colptr
:rowval
:nzval
julia> println(I1000.m, " ", I1000.n)
1000 1000
julia> I1000.colptr'
1x1001 Array{Int64,2}:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 … 993 994 995 996 997 998 999 1000 1001
julia> I1000.rowval'
1x1000 Array{Int64,2}:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 … 992 993 994 995 996 997 998 999 1000
julia> I1000.nzval'
1x1000 Array{Float64,2}:
1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 … 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0
|
Hmmm.......seems to be a weird bug in trying to show the sparse matrix. I've tracked it down to print(io, sep, '[', rpad(S.rowval[k], pad), ", ", lpad(col, pad), "] = ") |
Ok, even further reduced case: io = STDOUT
sep = "\n\t"
print(io, sep) Calling |
Further investigation takes me to https://github.com/JuliaLang/julia/blob/master/base/stream.jl#L765 trying to |
Is this related to #7082 perhaps? |
Related to JuliaLang/IJulia.jl#200? |
Ah, I didn't see that. Yes, it looks like it's the same issue (I don't see the same problem from console, only Sublime-IJulia). So I'm confused, is this a Julia or IJulia issue? |
I'm not sure where the problem lies; I haven't been able to reproduce the problem (on MacOS). (With IPython, it is not hanging, but somehow some garbled control characters are apparently being sent.) |
The problem seems to be that JSON.jl is not escaping the tab character on Windows because I'm not sure whether this is a bug in JSON or in |
Should be worked around by JuliaIO/JSON.jl@0f038d9 |
I didn't find any other issues about this.
Some digging seems to point to the constructor. Are there some parameters not being satisfied?
It's weird that
@which
can't find a line number for the constructor.The text was updated successfully, but these errors were encountered: