QR for Double