MATRIX (kmatrix) functions
LIBRARY ROUTINE
lmlse - compute least-squares solution to a set of linear equations
LIBRARY CALL
int lmlse (
kobject A_obj,
kobject B_obj,
kobject X_obj)
INPUT
- A_obj - A matrix
kobject
- B_obj - set of b vectors (col vectors) for RHS
OUTPUT
- X_obj - set of x vectors (col vectors for solution
RETURN VALUE
TRUE (1) on success, FALSE (0) on failure
DESCRIPTION
Library Routine for mlse - this routine employs the
LAPACK DGELS or ZGELS driver to obtain the least-squares
solution to a set of linear equations AX=B where
B is made up of column vectors, each of which is assumed
to be an independent right-hand-side, and X is made up
of column vectors, each of which is an independent solution
to the corresponding X column vector.
For an MxN matrix A, if M>=N then the solution is obtained
using the QR factorization; if M<N, then the solution is
obtained using the LQ factorization.
ADDITIONAL INFORMATION
none
EXAMPLES
none
SIDE EFFECTS
none
RESTRICTIONS
none
MODIFICATION
none
FILES
$MATRIX/objects/library/kmatrix/src/lmlse.c
SEE ALSO
kmatrix(3)
COPYRIGHT
Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.