-
-
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
Base.show fails with structural matrices with non-number elements #50377
Comments
this could be solved by:
to: if isstored(X,i,j) && isassigned(X,i,j)
aij = alignment(io, X[i,j])::Tuple{Int,Int}
else
aij = undef_ref_alignment
end |
I am not certain about the proposed fix there, since the code expects getindex to work, and then calls |
The issue is not fixed with #50391, but defines the necessary functions to work on a fix |
Right, github got confused by the text there, but my uncertainty remains over the proposed answer here |
Yeah, I will need to see what to do about that, but at least there is now a way to detect if an element of a matrix is stored or not |
Some matrices (
SparseMatrixCSC
andDiagonal
, as far as i know) depend on a type definingiszero(x::T)
andzero(Type{T})
to work. a MWE:version info.
related:
korsbo/Latexify.jl#269
The text was updated successfully, but these errors were encountered: