dggglm | R Documentation |
Solve the least square problem
dggglm(A, B, d, NB = 64L)
A |
A matrix A (dimension n,m) |
B |
A matrix B (dimension n,p) |
d |
A vector d. dimension n |
NB |
An integer indicating an upper bound for the optimal blocksizes. The default is 64. |
Solve the following least square problem:
\min_x || B^{-1} (d - A x) ||_2
(workspace/output) DOUBLE PRECISION array, dimension (MAX(1,LWORK)). On exit, if INFO = 0, WORK(1) returns the optimal LWORK.
(input) INTEGER. The dimension of the array WORK. LWORK >= max(1,N+M+P). For optimum performance, LWORK >= M+min(N,P)+max(N,P)*NB, where NB is an upper bound for the optimal blocksizes for DGEQRF, SGERQF, DORMQR and SORMRQ. If LWORK = -1, then a workspace query is assumed; the routine only calculates the optimal size of the WORK array, returns this value as the first entry of the WORK array, and no error message related to LWORK is issued by XERBLA.
(output) INTEGER.
successful exit.
if INFO = -i, the i-th argument had an illegal value.
the upper triangular factor R associated with A in the generalized QR factorization of the pair (A, B) is singular, so that rank(A) < M; the least squares solution could not be computed.
the bottom (N-M) by (N-M) part of the upper trapezoidal factor T associated with B in the generalized QR factorization of the pair (A, B) is singular, so that rank( A B ) < N; the least squares solution could not be computed.
A list with components;
x |
A vector m. dimension m |
y |
A vector p. dimension p |
info |
A status. See details. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.