nag_superlu_solve_lu (f11mfc) solves a real sparse system of linear equations with multiple right-hand sides given an
factorization of the sparse matrix computed by
nag_superlu_lu_factorize (f11mec).
nag_superlu_solve_lu (f11mfc) solves a real system of linear equations with multiple right-hand sides
or
, according to the value of the argument
trans, where the matrix factorization
corresponds to an
decomposition of a sparse matrix stored in compressed column (Harwell–Boeing) format, as computed by
nag_superlu_lu_factorize (f11mec).
None.
- NE_ALLOC_FAIL
Dynamic memory allocation failed.
- NE_BAD_PARAM
On entry, argument number had an illegal value.
On entry, argument had an illegal value.
- NE_INT
On entry, .
Constraint: .
On entry, .
Constraint: .
On entry, .
Constraint: .
- NE_INT_2
On entry, and .
Constraint: .
On entry, and .
Constraint: .
- NE_INTERNAL_ERROR
An internal error has occurred in this function. Check the function call and any array sizes. If the call is correct then please contact
NAG for assistance.
- NE_INVALID_PERM_COL
Incorrect Column Permutations in array
iprm.
- NE_INVALID_PERM_ROW
Incorrect Row Permutations in array
iprm.
For each right-hand side vector
, the computed solution
is the exact solution of a perturbed system of equations
, where
is a modest linear function of
, and
is the
machine precision, when partial pivoting is used.
If
is the true solution, then the computed solution
satisfies a forward error bound of the form
where
.
Note that
can be much smaller than
, and
can be much larger (or smaller) than
.
Forward and backward error bounds can be computed by calling
nag_superlu_refine_lu (f11mhc), and an estimate for
can be obtained by calling
nag_superlu_condition_number_lu (f11mgc).
nag_superlu_solve_lu (f11mfc) may be followed by a call to
nag_superlu_refine_lu (f11mhc) to refine the solution and return an error estimate.
This example solves the system of equations
, where
Here
is nonsymmetric and must first be factorized by
nag_superlu_lu_factorize (f11mec).