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.
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) is threaded by NAG for parallel execution in multithreaded implementations of the NAG Library.
nag_superlu_solve_lu (f11mfc) makes calls to BLAS and/or LAPACK routines, which may be threaded within the vendor library used by this implementation. Consult the documentation for the vendor library for further information.
Please consult the
Users' Note for your implementation for any additional implementation-specific information.
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).