The routine may be called by the names f01vlf, nagf_matop_dtfttp or its LAPACK name dtfttp.
f01vlf packs a real triangular matrix , stored in RFP format, to packed format. This routine is intended for possible use in conjunction with routines from Chapters F06, F07 and F16 where some routines that use triangular matrices store them in RFP format.
The RFP storage format is described in Section 3.3.3 in the F07 Chapter Introduction and the packed storage format is described in Section 3.3.2 in the F07 Chapter Introduction.
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
1: – Character(1)Input
On entry: specifies whether the normal RFP representation of or its transpose is stored.
The RFP representation of the matrix is stored.
The transpose of the RFP representation of the matrix is stored.
2: – Character(1)Input
On entry: specifies whether is upper or lower triangular.
is upper triangular.
is lower triangular.
3: – IntegerInput
On entry: , the order of the matrix .
4: – Real (Kind=nag_wp) arrayInput
On entry: the upper or lower triangular matrix (as specified by uplo) in either normal or transposed RFP format (as specified by transr). The storage format is described in Section 3.3.3 in the F07 Chapter Introduction.
5: – Real (Kind=nag_wp) arrayOutput
On exit: the triangular matrix , packed by columns.
if , the upper triangle of is stored with element in for ;
if , the lower triangle of is stored with element in for .
6: – IntegerOutput
On exit: unless the routine detects an error (see Section 6).
6Error Indicators and Warnings
If , argument had an illegal value. An explanatory message is output, and execution of the program is terminated.
Dynamic memory allocation failed.
See Section 9 in the Introduction to the NAG Library FL Interface for further information.
8Parallelism and Performance
Background information to multithreading can be found in the Multithreading documentation.
f01vlf is not threaded in any implementation.
This example reads in a triangular matrix in RFP format and copies it to packed format.