f16ylc performs one of the matrix-matrix operations
where is a real triangular matrix stored in Rectangular Full Packed (RFP) format, is an by real matrix, and is a real scalar. denotes or equivalently .
No test for singularity or near-singularity of is included in this function. Such tests must be performed before calling this function.
The function may be called by the names: f16ylc, nag_blast_dtfsm or nag_dtfsm.
3Description
f16ylc solves (for ) a triangular linear system of one of the forms
where is a real triangular matrix stored in RFP format, , are by real matrices, and is a real scalar.
The RFP storage format is described in Section 3.4.3 in the F07 Chapter Introduction.
4References
Gustavson F G, Waśniewski J, Dongarra J J and Langou J (2010) Rectangular full packed format for Cholesky's algorithm: factorization, solution, and inversion ACM Trans. Math. Software37, 2
5Arguments
1: – Nag_OrderTypeInput
On entry: the order argument specifies the two-dimensional storage scheme being used, i.e., row-major ordering or column-major ordering. C language defined storage is specified by . See Section 3.1.3 in the Introduction to the NAG Library CL Interface for a more detailed explanation of the use of this argument.
Constraint:
or .
2: – Nag_RFP_StoreInput
On entry: specifies whether the RFP representation of is normal or transposed.
The matrix is stored in normal RFP format.
The matrix is stored in transposed RFP format.
Constraint:
or .
3: – Nag_SideTypeInput
On entry: specifies whether is operated on from the left or the right, or similarly whether (or its transpose) appears to the left or right of the solution matrix in the linear system to be solved.
is pre-multiplied from the left. The system to be solved has the form or .
is post-multiplied from the right. The system to be solved has the form or .
Constraint:
or .
4: – Nag_UploTypeInput
On entry: specifies whether is upper or lower triangular.
is upper triangular.
is lower triangular.
Constraint:
or .
5: – Nag_TransTypeInput
On entry: specifies whether the operation involves or , i.e., whether or not is transposed in the linear system to be solved.
The operation involves , i.e., is not transposed.
The operation involves , i.e., is transposed.
Constraint:
or .
6: – Nag_DiagTypeInput
On entry: specifies whether has nonunit or unit diagonal elements.
The diagonal elements of are stored explicitly.
The diagonal elements of are assumed to be , the corresponding elements of ar are not referenced.
Constraint:
or .
7: – IntegerInput
On entry: , the number of rows of the matrix .
Constraint:
.
8: – IntegerInput
On entry: , the number of columns of the matrix .
Constraint:
.
9: – doubleInput
On entry: the scalar .
10: – const doubleInput
Note: the dimension, dim, of the array ar
must be at least
when ;
when .
On entry: the by triangular matrix if or the by triangular matrix if , stored in RFP format (as specified by transr). The storage format is described in detail in Section 3.4.3 in the F07 Chapter Introduction. If , ar is not referenced.
11: – doubleInput/Output
Note: the dimension, dim, of the array b
must be at least
On exit: the updated matrix , or similarly the solution matrix .
If , is stored in .
If , is stored in .
12: – IntegerInput
On entry: the stride separating row or column elements (depending on the value of order) in the array b.
Constraints:
if ,
;
if , .
13: – NagError *Input/Output
The NAG error argument (see Section 7 in the Introduction to the NAG Library CL Interface).
6Error Indicators and Warnings
NE_ALLOC_FAIL
Dynamic memory allocation failed.
See Section 3.1.2 in the Introduction to the NAG Library CL Interface for further information.
NE_BAD_PARAM
On entry, argument had an illegal value.
NE_INT
On entry, .
Constraint: .
On entry, .
Constraint: .
NE_INT_2
On entry, , .
Constraint: .
On entry, and .
Constraint: .
NE_INTERNAL_ERROR
An internal error has occurred in this function. Check the function call and any array sizes. If the call is correct then please contact NAG for assistance.
See Section 7.5 in the Introduction to the NAG Library CL Interface for further information.
NE_NO_LICENCE
Your licence key may have expired or may not have been installed correctly.
See Section 8 in the Introduction to the NAG Library CL Interface for further information.
7Accuracy
Not applicable.
8Parallelism and Performance
f16ylc makes calls to BLAS and/or LAPACK routines, which may be threaded within the vendor library used by this implementation. Consult the documentation for the vendor library for further information.
Please consult the X06 Chapter Introduction for information on how to control and interrogate the OpenMP environment used within this function. Please also consult the Users' Note for your implementation for any additional implementation-specific information.
9Further Comments
None.
10Example
This example reads in the lower triangular part of a symmetric matrix which it converts to RFP format. It also reads in and a by matrix and then performs the matrix-matrix operation .