|
NAG[f04adc] NAG[nag_complex_lin_eqn_mult_rhs] - Approximate solution of complex simultaneous linear equations with multiple right-hand sides
|
|
Calling Sequence
f04adc(a, b, x, 'n'=n, 'nrhs'=nrhs, 'tda'=tda, 'tdb'=tdb, 'tdx'=tdx, 'fail'=fail)
nag_complex_lin_eqn_mult_rhs(. . .)
Parameters
|
a - Matrix(1..n, 1..tda, datatype=complex[8], order=C_order);
|
|
|
|
b - Matrix(1..n, 1..tdb, datatype=complex[8], order=C_order);
|
|
|
|
x - Matrix(1..n, 1..tdx, datatype=complex[8], order=C_order);
|
|
|
|
'n'=n - integer; (optional)
|
|
|
Default value: the first dimension of the arrays a, b, x and the second dimension of the arrays a, b, xthe array a.
|
|
On entry: , the order of the matrix .
|
|
Constraint: . .
|
|
|
'nrhs'=nrhs - integer; (optional)
|
|
|
Default value: the second dimension of the arrays b, x.
|
|
On entry: , the number of right-hand sides.
|
|
Constraint: . .
|
|
|
'tda'=tda - integer; (optional)
|
|
|
On entry: the second dimension of the array a as declared in the function from which nag_complex_lin_eqn_mult_rhs (f04adc) is called.
|
|
Constraint: . .
|
|
|
'tdb'=tdb - integer; (optional)
|
|
|
On entry: the second dimension of the array b as declared in the function from which nag_complex_lin_eqn_mult_rhs (f04adc) is called.
|
|
Constraint: . .
|
|
|
'tdx'=tdx - integer; (optional)
|
|
|
On entry: the second dimension of the array x as declared in the function from which nag_complex_lin_eqn_mult_rhs (f04adc) is called.
|
|
Constraint: . .
|
|
|
'fail'=fail - table; (optional)
|
|
|
The NAG error argument, see the documentation for NagError.
|
|
|
|
Description
|
|
|
Purpose
|
|
nag_complex_lin_eqn_mult_rhs (f04adc) calculates the solution of a set of complex linear equations with multiple right-hand sides.
|
|
Error Indicators and Warnings
|
|
"NE_ALLOC_FAIL"
Dynamic memory allocation failed.
"NE_INT_ARG_LT"
On entry, n must not be less than 1: .
"NE_SINGULAR"
The matrix is singular, possibly due to rounding errors.
|
|
Accuracy
|
|
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).
|
|
Further Comments
|
|
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.
|
|
|
Examples
|
|
>
|
n := 3:
nrhs := 1:
tda := 3:
tdb := 1:
tdx := 1:
a := Matrix([[1 +0*I , 1 +2*I , 2 +10*I ], [1 +1*I , 0 +3*I , -5 +14*I ], [1 +1*I , 0 +5*I , -8 +20*I ]], datatype=complex[8], order='C_order'):
b := Matrix([[1 +0*I ], [0 +0*I ], [0 +0*I ]], datatype=complex[8], order='C_order'):
x := Matrix(3, 1, datatype=complex[8], order='C_order'):
NAG:-f04adc(a, b, x, 'n' = n, 'nrhs' = nrhs, 'tda' = tda, 'tdb' = tdb, 'tdx' = tdx):
|
|
|
See Also
|
|
Golub G H and Van Loan C F (1996) Matrix Computations (3rd Edition) Johns Hopkins University Press, Baltimore
Wilkinson J H and Reinsch C (1971) Handbook for Automatic Computation II, Linear Algebra Springer–Verlag
f04 Chapter Introduction.
NAG Toolbox Overview.
NAG Web Site.
|
|