Why is qr! not available for a view?

I’m not an expert on reading subarray types, but it looks to me like you accidentally passed in a 1D view, or something like that. The following works fine in my REPL:

julia> A = randn(10,10);
julia> B = view(A, 1:9, 1:9);
julia> Bf = qr!(B);

The reason I mention the 1D view is because the typeof of my view is

julia> typeof(B)
SubArray{Float64, 2, Matrix{Float64}, Tuple{UnitRange{Int64}, UnitRange{Int64}}, false}

which is different from what your method error gave.

Or am I misunderstanding some part of your post?