pnull: Particular least-squares solution and Null-space basis
Description
use Lapack to find a particular solution xp of under-determined least
squares system Ax=b and build null space basis B of A
(derived from MASS::Null). In such a way, a general solution is given by
x=xp+Bz where z is an arbitrary vector of size ncol(A)-rank(A).
alist with xp and B, particular solution and numeric matrix
whose columns are basis vectors. If requested, attributes 'qr' and
'qrat' of B contain QR decomposition of A and t(A)
respectively.
Arguments
A
matrix (or its QR decomposition) such that A%*%B=0
where B is a basis of Kern(A) (aka Null-space).
b
is the right hand side of the least squares system Ax=b.