This generic function solves the equation
a %*% x = b for
b can be either a vector or a matrix.
1 2 3 4
a square numeric or complex matrix containing the coefficients of the linear system. Logical matrices are coerced to numeric.
a numeric or complex vector or matrix giving the right-hand
side(s) of the linear system. If missing,
the tolerance for detecting linear dependencies in the
logical. Defunct and ignored with a warning.
further arguments passed to or from other methods
b can be complex, but this uses double complex
arithmetic which might not be available on all platforms.
The row and column names of the result are taken from the column names
a and of
b respectively. If
b is missing the
column names of the result are the row names of
a. No check is
made that the column names of
a and the row names of
a can be a (real) QR decomposition,
qr.solve should be called in that case.
qr.solve can handle non-square systems.
Unsuccessful results from the underlying LAPACK code will result in an error giving a positive error code: these can only be interpreted by detailed study of the FORTRAN code.
The default method is an interface to the LAPACK routines
LAPACK is from https://www.netlib.org/lapack/.
Anderson. E. and ten others (1999)
LAPACK Users' Guide. Third Edition. SIAM.
Available on-line at https://www.netlib.org/lapack/lug/lapack_lug.html.
Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S Language. Wadsworth & Brooks/Cole.
solve.qr for the
chol2inv for inverting from the Choleski factor
1 2 3 4 5 6 7 8 9
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.