This is not correct:
|
# Base show method (without MIME) - delegates to text/plain |
|
function Base.show(io::IO, A::NDSparseArray{T, N}) where {T, N} |
|
return show(io, MIME"text/plain"(), A) |
|
end |
|
|
|
# Improved display with better formatting |
|
function Base.show(io::IO, ::MIME"text/plain", A::NDSparseArray{T, N}) where {T, N} |
As the doc string says:
The representation used by show generally includes Julia-specific formatting and type information, and should be parseable Julia code when possible.
[...]
For a more verbose human-readable text output for objects of type T, define show(io::IO, ::MIME"text/plain", ::T) in addition.
This is not correct:
NDimensionalSparseArrays.jl/src/ndsparsearray.jl
Lines 370 to 376 in 6fde3dc
As the doc string says: