Skip to content

Commit

Permalink
do not return view
Browse files Browse the repository at this point in the history
  • Loading branch information
louisponet committed Aug 21, 2022
1 parent cdd20bd commit dab8957
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ for (ormqr, orgqr, elty) in ((:dormqr_, :dorgqr_, :Float64),
info)
chklapackerror(info[])
if n < size(A,2)
return view(A, :, 1:n)
return A[:, 1:n]
else
return A
end
Expand Down

0 comments on commit dab8957

Please sign in to comment.