function that can solve matrix equations using a QR
     decomposition.
Parameters:
      input (Tensor) -- the input matrix
Keyword Arguments:
      out (tuple, optional) -- the output tuple of (Tensor,
      Tensor). Ignored if None. Default: None.