rStats.js v1.3.0
    Preparing search index...

    Function qrR

    • Recovers the upper triangular matrix R from a QR decomposition. Equivalent to R's qr.R().

      The columns stay in pivoted order (as in R); use q.pivot to map them back.

      Parameters

      • q: QR

        A QR decomposition from qr.

      • options: { complete?: boolean } = {}

        complete: return all n rows instead of the first min(n, p). Default: false.

      Returns number[][]

      R as an array of rows.

      qrR(qr([[3, 0], [4, 5]])); // [[-5, -4], [0, 3]]