You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd bet that the problem is that SubArray doesn't implement a matrix style getindex for vectors. Does a quick hack like getindex(s::SubArray, i::Integer, j::Integer) = getindex(s, i) restore printing something that's not #undef?
Running
a = [1,2,3,4]; b = sub(a, 1:2)
in the repl givesThe culprit seems to be somewhere in
print_matrix
(sinceprint_matrix(STDOUT, b)
gives the two#undef
s).The text was updated successfully, but these errors were encountered: