I don’t see any computational difference in the two models. Both have a matrix vector multiply. The sampling statement is gonna work the same if x is a row vector or a column vector.
Do you have a Wikipedia link on the QR sum to zero thing? I was trying to prove to myself that these two codes were equivalent but didn’t manage to figure out what’s happening.