Skip to content

Conversation

@gustaphe
Copy link
Collaborator

No description provided.

@gustaphe
Copy link
Collaborator Author

julia> undefarr = Array{Any,2}(undef, 2, 2)
2×2 Matrix{Any}:
 #undef  #undef
 #undef  #undef

julia> undefarr[1] = "x"
"x"

julia> render(latexify(undefarr))

image

@ChrisRackauckas
Copy link
Contributor

That looks reasonable to me!

@damianodegaspari
Copy link

If I am not mistaken, \cdot is the same symbol used for sparse arrays. In that context it means 0 instead of undefined. Personally, I don't think it's a problem: context should make it clear enough. In my specific case, as an inexperienced person just trying to initialize a matrix, I would have been happy with any representation which didn't look like an error. Thus I'm fine with this solution (as I said, I would have been fine with basically everything).

@gustaphe gustaphe merged commit c7ac169 into korsbo:master Oct 3, 2024
@gustaphe gustaphe linked an issue Apr 7, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rendering higher order tensors and uninitialized arrays.

3 participants