You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia> x =qr(randn(3,3))[1];
julia> c = x'x;
julia> c
3x3 Array{Float64,2}:1.05.55112e-175.55112e-175.55112e-171.02.22045e-165.55112e-172.22045e-161.0
julia>println(c)
[1.05.551115123125783e-175.551115123125783e-175.551115123125783e-170.99999999999999962.220446049250313e-165.551115123125783e-172.220446049250313e-160.9999999999999998]
julia>show(c)
[1.05.551115123125783e-175.551115123125783e-175.551115123125783e-170.99999999999999962.220446049250313e-165.551115123125783e-172.220446049250313e-160.9999999999999998]
The REPL printing is quite decent, while the version produced by println is almost unreadable.
I am wondering why println or show does not do the pretty version.
One consequence of the current behavior is that it makes debugging difficult, since println(a) always outputs something that I have hard time comprehending, and it also affects @test_approx_eq.
Also, in application scripts, when I do want to print an array, I always ended up writing for-loops using @printf.
The text was updated successfully, but these errors were encountered:
See below
The REPL printing is quite decent, while the version produced by
println
is almost unreadable.I am wondering why
println
orshow
does not do the pretty version.One consequence of the current behavior is that it makes debugging difficult, since
println(a)
always outputs something that I have hard time comprehending, and it also affects@test_approx_eq
.Also, in application scripts, when I do want to print an array, I always ended up writing for-loops using
@printf
.The text was updated successfully, but these errors were encountered: