Syntax
C# |
---|
public static void f07as( string trans, int n, int nrhs, Complex[,] a, int[] ipiv, Complex[,] b, out int info ) |
Visual Basic |
---|
Public Shared Sub f07as ( _ trans As String, _ n As Integer, _ nrhs As Integer, _ a As Complex(,), _ ipiv As Integer(), _ b As Complex(,), _ <OutAttribute> ByRef info As Integer _ ) |
Visual C++ |
---|
public: static void f07as( String^ trans, int n, int nrhs, array<Complex,2>^ a, array<int>^ ipiv, array<Complex,2>^ b, [OutAttribute] int% info ) |
F# |
---|
static member f07as : trans : string * n : int * nrhs : int * a : Complex[,] * ipiv : int[] * b : Complex[,] * info : int byref -> unit |
Parameters
- trans
- Type: System..::..StringOn entry: indicates the form of the equations.
- is solved for .
- is solved for .
- is solved for .
Constraint: , or .
- n
- Type: System..::..Int32On entry: , the order of the matrix .Constraint: .
- nrhs
- Type: System..::..Int32On entry: , the number of right-hand sides.Constraint: .
- a
- Type: array<NagLibrary..::..Complex,2>[,](,)[,][,]An array of size [dim1, dim2]Note: dim1 must satisfy the constraint:Note: the second dimension of the array a must be at least .On entry: the factorization of , as returned by f07ar.
- ipiv
- Type: array<System..::..Int32>[]()[][]An array of size [dim1]Note: the dimension of the array ipiv must be at least .On entry: the pivot indices, as returned by f07ar.
- b
- Type: array<NagLibrary..::..Complex,2>[,](,)[,][,]An array of size [dim1, dim2]Note: dim1 must satisfy the constraint:Note: the second dimension of the array b must be at least .On entry: the by right-hand side matrix .On exit: the by solution matrix .
- info
- Type: System..::..Int32%On exit: unless the method detects an error (see [Error Indicators and Warnings]).
Description
f07as is used to solve a complex system of linear equations , or , the method must be preceded by a call to f07ar which computes the factorization of as . The solution is computed by forward and backward substitution.
If , the solution is computed by solving and then .
If , the solution is computed by solving and then .
If , the solution is computed by solving and then .
References
Golub G H and Van Loan C F (1996) Matrix Computations (3rd Edition) Johns Hopkins University Press, Baltimore
Error Indicators and Warnings
Some error messages may refer to parameters that are dropped from this interface
(LDA, LDB) In these
cases, an error in another parameter has usually caused an incorrect value to be inferred.
- If , argument had an illegal value. An explanatory message is output, and execution of the program is terminated.
Accuracy
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.
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 (which is the same as ) can be much larger (or smaller) than .
Forward and backward error bounds can be computed by calling (F07AVF not in this release), and an estimate for can be obtained by calling (F07AUF not in this release) with .
Parallelism and Performance
None.
Further Comments
The total number of real floating-point operations is approximately .
This method may be followed by a call to (F07AVF not in this release) to refine the solution and return an error estimate.
The real analogue of this method is (F07AEF not in this release).