Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "ql/math/matrixutilities/qrdecomposition"

Index

Functions

qrDecomposition

  • QR decompoisition

    This implementation is based on MINPACK (http://www.netlib.org/minpack, http://www.netlib.org/cephes/linalg.tgz)

    This subroutine uses householder transformations with column pivoting (optional) to compute a qr factorization of the m by n matrix A. That is, qrfac determines an orthogonal matrix q, a permutation matrix p, and an upper trapezoidal matrix r with diagonal elements of nonincreasing magnitude, such that Ap = qr.

    Return value ipvt is an integer array of length n, which defines the permutation matrix p such that Ap = qr. Column j of p is column ipvt(j) of the identity matrix.

    See lmdiff.cpp for further details.

    Parameters

    Returns Size[]

qrSolve

  • QR Solve

    This implementation is based on MINPACK (http://www.netlib.org/minpack, http://www.netlib.org/cephes/linalg.tgz)

    Given an m by n matrix A, an n by n diagonal matrix d, and an m-vector b, the problem is to determine an x which solves the system

    Ax = b , dx = 0 ,

    in the least squares sense.

    d is an input array of length n which must contain the diagonal elements of the matrix d.

    See lmdiff.cpp for further details.

    Parameters

    • a: Matrix
    • b: Real[]
    • Default value pivot: boolean = true
    • Default value d: Real[] = []

    Returns Real[]