qmult

SPQRFactor.qmult(X, method='QX')[source]

Multiply by Q using the Householder representation.

Parameters:
  • X ((M, N) numpy.ndarray or sparse array) – The matrix to be multiplied. Must have compatible shape with Q.

  • method (str , optional) – The multiplication method. Options are:

    • QX : compute \(Q X\)

    • QTX : compute \(Q^{\top} X\)

    • XQ : compute \(X Q\)

    • XQT : compute \(X Q^{\top}\)

    Default is QX. The transpose is the conjugate transpose for complex data.

Returns:

Y ((M, N) numpy.ndarray or sparse array) – The result of the multiplication. If X is a sparse array, then Y is also returned as a sparse array.

Notes

This function is part of an interface to the SuiteSparse SPQR library [1].

Added in version 0.5.0.

References