|
|
◆ banslv()
| void banslv |
( |
int |
n, |
|
|
int |
kl, |
|
|
int |
ku, |
|
|
int |
ldab, |
|
|
double |
ab[], |
|
|
double |
b[], |
|
|
int * |
info |
|
) |
| |
Solution of LU factorized system of linear equations (support routine for bint4 and bintk)
- Purpose
- This routine computes the solution x of the linear system Ax = b in place of b, given the LU factorization of A from banfac.
banslv is used to compute the B-spline coefficients by solving the system of linear equations.
banfac and banslv are the support routines for bint4 and bintk.
- Parameters
-
| [in] | n | Number of linear equations, i.e., order of the matrix A. (n >= 1) |
| [in] | kl | Number of sub-diagonals within the band of A. (kl >= 0) |
| [in] | ku | Number of super-diagonals within the band of A. (ku >= 0) |
| [in] | ldab | Leading dimension of the two dimensional array ab[][]. (ldab >= kl + 1 + ku) |
| [in] | ab[][] | Array ab[lab][ldab] (lab >= n)
The LU factorized banded coefficient matrix of the linear system by banfac. |
| [in,out] | b[] | Array b[lb] (lb >= n)
[in] Right side of the system to be solved.
[out] Solution vector. |
| [out] | info | = 0: Successful exit
= -1: The argument n had an illegal value (n < 1)
= -2: The argument kl had an illegal value (kl < 0)
= -3: The argument ku had an illegal value (ku < 0)
= -4: The argument ldab had an illegal value (ldab < kl + 1 + ku) |
- Reference
- SLATEC
|