qr#

Perform a QR decomposition.

template<typename AType>
__MATX_INLINE__ auto matx::qr(AType A)#

Perform QR decomposition on a matrix using housholders reflections. If rank > 2 operations are batched.

Template Parameters:

AType – Tensor or operator type for output of A input tensors.

Parameters:

A – Input tensor or operator for tensor A input.

Returns:

Operator to generate Q/R outputs

Examples#

(mtie(Q, R) = qr(A)).run(stream);
template<typename OpA>
__MATX_INLINE__ auto matx::cusolver_qr(const OpA &a)#

Examples#

// cuSolver only supports col-major solving today, so we need to transpose,
// solve, then transpose again to compare to Python
(mtie(this->Av, this->TauV) = cusolver_qr(this->Av)).run(this->exec);