f06pj solves a real triangular system of equations with a single right hand side.
Syntax
C# |
---|
public static void f06pj( string uplo, string trans, string diag, int n, double[,] a, double[] x, int incx, out int ifail ) |
Visual Basic |
---|
Public Shared Sub f06pj ( _ uplo As String, _ trans As String, _ diag As String, _ n As Integer, _ a As Double(,), _ x As Double(), _ incx As Integer, _ <OutAttribute> ByRef ifail As Integer _ ) |
Visual C++ |
---|
public: static void f06pj( String^ uplo, String^ trans, String^ diag, int n, array<double,2>^ a, array<double>^ x, int incx, [OutAttribute] int% ifail ) |
F# |
---|
static member f06pj : uplo : string * trans : string * diag : string * n : int * a : float[,] * x : float[] * incx : int * ifail : int byref -> unit |
Parameters
- uplo
- Type: System..::..StringOn entry: specifies whether is upper or lower triangular.
- is upper triangular.
- is lower triangular.
Constraint: or .
- trans
- Type: System..::..StringOn entry: specifies the operation to be performed.
- .
- or
- .
Constraint: , or .
- diag
- Type: System..::..StringOn entry: specifies whether has nonunit or unit diagonal elements.
- The diagonal elements are stored explicitly.
- The diagonal elements are assumed to be , and are not referenced.
Constraint: or .
- n
- Type: System..::..Int32On entry: , the order of the matrix .Constraint: .
- a
- Type: array<System..::..Double,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 by triangular matrix .
- If , is upper triangular and the elements of the array below the diagonal are not referenced.
- If , is lower triangular and the elements of the array above the diagonal are not referenced.
- If , the diagonal elements of are assumed to be , and are not referenced.
- x
- Type: array<System..::..Double>[]()[][]An array of size [dim1]Note: the dimension of the array x must be at least .On entry: the -element vector .If , must be stored in , for .If , must be stored in , for .On exit: the updated vector stored in the array elements used to supply the original vector .
- incx
- Type: System..::..Int32On entry: the increment in the subscripts of x between successive elements of .Constraint: .
- ifail
- Type: System..::..Int32%On exit: unless the method detects an error (see [Error Indicators and Warnings]).
Description
f06pj performs one of the matrix-vector operations
where is an by real triangular matrix, and is an -element real vector. denotes or equivalently .
No test for singularity or near-singularity of is included in this method. Such tests must be performed before calling this method.
References
None.
Error Indicators and Warnings
Accuracy
Not applicable.
Parallelism and Performance
None.
Further Comments
None.