We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
julia> a = rand(5, 5) 5×5 Array{Float64,2}: 0.396073 0.849368 0.0234378 0.511216 0.936831 0.413839 0.0628414 0.514461 0.783154 0.683139 0.690429 0.0933576 0.903275 0.14063 0.723661 0.331507 0.117632 0.598188 0.18758 0.868101 0.968423 0.807337 0.562276 0.587633 0.308789 julia> av = view(a, [1, 3, 4], :) 3×5 view(::Array{Float64,2}, Error showing value of type SubArray{Float64,2,Array{Float64,2},Tuple{Array{Int64,1},Base.Slice{Base.OneTo{Int64}}},false}: ERROR: AssertionError: Array{Int64,1} is not a subtype of Float64 Stacktrace: [1] typeinfo_prefix(::IOContext{Base.Terminals.TTYTerminal}, ::Array{Int64,1}) at ./arrayshow.jl:475 [2] show_vector(::IOContext{Base.Terminals.TTYTerminal}, ::Array{Int64,1}, ::Char, ::Char) at ./arrayshow.jl:428 [3] print(::IOContext{Base.Terminals.TTYTerminal}, ::Array{Int64,1}) at ./strings/io.jl:30 [4] print(::IOContext{Base.Terminals.TTYTerminal}, ::String, ::Array{Int64,1}, ::Vararg{Array{Int64,1},N} where N) at ./strings/io.jl:41 [5] showindices at ./show.jl:1731 [inlined] [6] showarg(::IOContext{Base.Terminals.TTYTerminal}, ::SubArray{Float64,2,Array{Float64,2},Tuple{Array{Int64,1},Base.Slice{Base.OneTo{Int64}}},false}, ::Bool) at /home/tim/src/julia-1.0/base/show.jl:1725 [7] summary(::IOContext{Base.Terminals.TTYTerminal}, ::SubArray{Float64,2,Array{Float64,2},Tuple{Array{Int64,1},Base.Slice{Base.OneTo{Int64}}},false}, ::Tuple{Base.OneTo{Int64},Base.OneTo{Int64}}) at ./show.jl:1660 [8] _display(::IOContext{Base.Terminals.TTYTerminal}, ::SubArray{Float64,2,Array{Float64,2},Tuple{Array{Int64,1},Base.Slice{Base.OneTo{Int64}}},false}) at ./arrayshow.jl:330 [9] show(::IOContext{Base.Terminals.TTYTerminal}, ::MIME{Symbol("text/plain")}, ::SubArray{Float64,2,Array{Float64,2},Tuple{Array{Int64,1},Base.Slice{Base.OneTo{Int64}}},false}) at ./replutil.jl:139 [10] display(::Base.REPL.REPLDisplay{Base.REPL.LineEditREPL}, ::MIME{Symbol("text/plain")}, ::SubArray{Float64,2,Array{Float64,2},Tuple{Array{Int64,1},Base.Slice{Base.OneTo{Int64}}},false}) at ./repl/REPL.jl:126 [11] display(::Base.REPL.REPLDisplay{Base.REPL.LineEditREPL}, ::SubArray{Float64,2,Array{Float64,2},Tuple{Array{Int64,1},Base.Slice{Base.OneTo{Int64}}},false}) at ./repl/REPL.jl:129 [12] display(::SubArray{Float64,2,Array{Float64,2},Tuple{Array{Int64,1},Base.Slice{Base.OneTo{Int64}}},false}) at ./multimedia.jl:291 [13] (::getfield(Base, Symbol("#inner#4")){NamedTuple{(),Tuple{}},typeof(display),Tuple{SubArray{Float64,2,Array{Float64,2},Tuple{Array{Int64,1},Base.Slice{Base.OneTo{Int64}}},false}}})() at ./essentials.jl:665 [14] print_response(::Base.Terminals.TTYTerminal, ::Any, ::Void, ::Bool, ::Bool, ::Void) at ./repl/REPL.jl:147 [15] print_response(::Base.REPL.LineEditREPL, ::Any, ::Void, ::Bool, ::Bool) at ./repl/REPL.jl:133 [16] (::getfield(Base.REPL, Symbol("#do_respond#17")){Bool,getfield(Base.REPL, Symbol("##27#37")){Base.REPL.LineEditREPL,Base.REPL.REPLHistoryProvider},Base.REPL.LineEditREPL,Base.LineEdit.Prompt})(::Base.LineEdit.MIState, ::Base.GenericIOBuffer{Array{UInt8,1}}, ::Bool) at ./repl/REPL.jl:704 [17] top-level scope
The text was updated successfully, but these errors were encountered:
xref #24651
Sorry, something went wrong.
fix :typeinfo with views (closes #25038)
a174d25
Array{Tuple{Int64,Array{Float64,1}},1}
6a4dc3b
rfourquet
No branches or pull requests
The text was updated successfully, but these errors were encountered: