Matt Fishman

Results 482 comments of Matt Fishman

Definitely agreed that the `qn` overload adds extra complexity to the design and we should consider if it is worth it (and like you say, for now users can just...

Looks like this is fixed in StaticArrays 1.5.1 by https://github.com/JuliaArrays/StaticArrays.jl/pull/1051. Need to add a lower bound on the `compat` entry and add a test for it.

Thanks for looking into this @MasonProtter, printing of ITensor objects could definitely use some improvement. Maybe we should go even farther with this and just print `MPS(N)` where `N` is...

I think one of the reasons why we haven't done this before (besides laziness) is because I like to use `@show` to debug code, in which case it is useful...

Here is a summary: ```julia julia> using ITensors julia> using ITensors: @show_verbose julia> s = siteinds("S=1/2", 8); julia> M = [randomMPS(s; linkdims=n) for n in 1:10]; julia> M 10-element Vector{MPS}:...

Not that I know of. By default in Julia, both `@show` and showing the elements of an `Array` would call `show(::IO, ::MPS)`. I don't see how `@show` could be customized,...

Actually, there is a `compact` attribute in the `IO` object, maybe that could be used for this? https://discourse.julialang.org/t/show-and-showcompact-on-custom-types/8493 https://github.com/JuliaLang/julia/blob/9028130434c5fb55e00c65e73aaf13cf0afde380/base/complex.jl#L181-L196

Thanks, that rules out that option.

@emstoudenmire, from what I can tell there is currently no way to have a compact `show` for elements of `Array{MPS}` and a non-compact `show` used in `@show` (since they both...

@MasonProtter It looks like sometimes context properties like `compact` and `limit` do get set during `Array` show: ```julia struct MyType end function Base.show(io::IO, ::MIME"text/plain", m::MyType) compact = get(io, :compact, false)...