-
-
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
Float32 print differently in matrices and vectors #24061
Comments
Perhaps not a bug, but it looks a bit weird. Probably another consequence of #22981. |
Yes this a direct consequence of it, and I already started to work on a fix. Note this is not at all limited to
|
This example was also to show that currently in some cases the matrix printing looks better than vector's (
What would people think is better? The latter looses information, but maybe is sufficient? |
It seems that this example complexifies the description of the problem proposed by @StefanKarpinski at #22981 (comment), since it adds a third dimension to take into account: consistency in printing, i.e. comparability of entries. Indeed what's most annoying in the above example is that OTOH, if we dropped type information, this would be the only case where you wouldn't know the type of an entry in the context of array printing. It could be confusing for people who have not realized they got a heterogeneous array. We could decide we don't care making this pretty, because arrays with abstract element types different from |
Looks like this is already solved: julia> Float32[1.4013f-10, 1]
2-element Array{Float32,1}:
1.4013e-10
1.0
julia> Float32[1.4013f-10 1]
1×2 Array{Float32,2}:
1.4013e-10 1.0 |
1.4013e-10
vs1.4013f-10
.The text was updated successfully, but these errors were encountered: