Generalizing the interfaces to RQ and QR factorizations