-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
confusing repr of single-element SparseMatrix #41135
Labels
display and printing
Aesthetics and correctness of printed representations of objects.
sparse
Sparse arrays
Comments
simeonschaub
added
sparse
Sparse arrays
display and printing
Aesthetics and correctness of printed representations of objects.
labels
Jun 8, 2021
Weird. For the same code, it's giving me this error.
|
That syntax was only added recently, so you need to use a more recent build of 1.7 |
simeonschaub
added a commit
that referenced
this issue
Jun 9, 2021
This uses the same printing as all other `AbstractArray`s for small sizes. The three-arg `show` used for REPL printing should still behave the same but has been refactored to share more code with the existing methods in Base. closes #41135
simeonschaub
added a commit
that referenced
this issue
Jun 9, 2021
This uses the same printing as all other `AbstractArray`s for small sizes. The three-arg `show` used for REPL printing should still behave the same but has been refactored to share more code with the existing methods in Base. closes #41135
simeonschaub
added a commit
that referenced
this issue
Jun 14, 2021
This now always uses `sparse(I, J, K, m, n)` for showing sparse matrices. The three-arg `show` used for REPL printing should still behave the same but has been refactored to share more code with the existing methods in Base. closes #41135
johanmon
pushed a commit
to johanmon/julia
that referenced
this issue
Jul 5, 2021
This now always uses `sparse(I, J, K, m, n)` for showing sparse matrices. The three-arg `show` used for REPL printing should still behave the same but has been refactored to share more code with the existing methods in Base. closes JuliaLang#41135
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
display and printing
Aesthetics and correctness of printed representations of objects.
sparse
Sparse arrays
I think SparseMatrices should use the same printing as regular arrays, at least for small sizes:
The original issue where I encountered this was a test failure similar to the following, which wasn't very fun to debug:
The text was updated successfully, but these errors were encountered: