nag_complex_lin_eqn_mult_rhs (f04adc) calculates the solution of a set of complex linear equations with multiple right-hand sides.
- 1:
n – IntegerInput
On entry: , the order of the matrix .
Constraint:
.
- 2:
nrhs – IntegerInput
On entry: , the number of right-hand sides.
Constraint:
.
- 3:
a[] – ComplexInput/Output
-
Note: the th element of the matrix is stored in .
On entry: the by matrix .
On exit: is overwritten by the lower triangular matrix and the off-diagonal elements of the upper triangular matrix . The unit diagonal elements of are not stored.
- 4:
tda – IntegerInput
-
On entry: the stride separating matrix column elements in the array
a.
Constraint:
.
- 5:
b[] – const ComplexInput
-
Note: the th element of the matrix is stored in .
On entry: the by right-hand side matrix .
- 6:
tdb – IntegerInput
-
On entry: the stride separating matrix column elements in the array
b.
Constraint:
.
- 7:
x[] – ComplexOutput
-
Note: the th element of the matrix is stored in .
On exit: the
by
solution matrix
. See also
Section 6.
- 8:
tdx – IntegerInput
-
On entry: the stride separating matrix column elements in the array
x.
Constraint:
.
- 9:
fail – NagError *Input/Output
-
The NAG error argument (see
Section 3.6 in the Essential Introduction).
The accuracy of the computed solution depends on the conditioning of the original matrix. For a detailed error analysis see page 106 of
Wilkinson and Reinsch (1971).
Not applicable.
The time taken by nag_complex_lin_eqn_mult_rhs (f04adc) is approximately proportional to .
The function may be called with the same array supplied for arguments
b and
x, in which case the solution vectors will overwrite the right-hand sides.
To solve the set of linear equations
where