|
|
◆ Banslv()
| Sub Banslv |
( |
N As |
Long, |
|
|
Kl As |
Long, |
|
|
Ku As |
Long, |
|
|
Ab() As |
Double, |
|
|
B() As |
Double, |
|
|
Info As |
Long |
|
) |
| |
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] | Ab() | Array Ab(LAb1 - 1, LAb2 - 1) (LAb1 >= Kl + Ku + 1, LAb2 >= N) (2D array) or Ab(LAb - 1) (LAb >= (Kl + Ku + 1)*N) (1D array)
The LU factorized banded coefficient matrix of the linear system by Banfac. |
| [in,out] | B() | Array B(LB - 1) (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 Ab() is incalid.
= -5: The argument B() is incalid. |
- Reference
- SLATEC
|