An alternative to .Call(C_Cdqlrs, x * wts, y * wts, tol, FALSE)) that is compatible with complex variables
An alternative to .Call(C_Cdqlrs, x * wts, y * wts, tol, FALSE)) that is compatible with complex variables
This serves as a wrapper for qr, replicating the behavior and output of the C++ function C_Cdqlrs. It is used in zlm.wfit, and is unlikely to be needed by end users.
complexdqlrs(x, y, tol =1e-07, chk)
Arguments
x: a complex matrix (will also accept numeric, but in that case you might as well use C_Cdqlrs) whose QR decomposition is to be computed.
y: a complex vector or matrix of right-hand side quantities.
tol: the tolerance for detecting linear dependencies in the columns of x. Not used for complex x.
chk: not used. Included to better imitate C_Cdqlrs.
Returns
A list that includes the qr decomposition, its coeffcionts, residuals, effects, rank, pivot information, qraux vector, tolerance, and whether or not it was pivoted. This is the same output as C_Cdqlrs.