NAG FL Interface
f06wcf (dsfrk)

1 Purpose

f06wcf performs one of the symmetric rank-k update operations
CαAAT + βC   or   CαATA + βC ,  
where A is a real matrix, C is an n by n real symmetric matrix stored in Rectangular Full Packed (RFP) format, and α and β are real scalars.

2 Specification

Fortran Interface
Subroutine f06wcf ( transr, uplo, trans, n, k, alpha, a, lda, beta, c)
Integer, Intent (In) :: n, k, lda
Real (Kind=nag_wp), Intent (In) :: alpha, a(lda,*), beta
Real (Kind=nag_wp), Intent (Inout) :: c(n*(n+1)/2)
Character (1), Intent (In) :: transr, uplo, trans
C Header Interface
#include <nag.h>
void  f06wcf_ (const char *transr, const char *uplo, const char *trans, const Integer *n, const Integer *k, const double *alpha, const double a[], const Integer *lda, const double *beta, double c[], const Charlen length_transr, const Charlen length_uplo, const Charlen length_trans)
The routine may be called by the names f06wcf, nagf_blas_dsfrk or its LAPACK name dsfrk.

3 Description

f06wcf performs one of the symmetric rank-k update operations
CαAAT + βC   or   CαATA + βC ,  
where A is a real matrix, C is an n by n real symmetric matrix stored in Rectangular Full Packed (RFP) format, and α and β are real scalars. The RFP storage format is described in Section 3.3.3 in the F07 Chapter Introduction.
If n=0 or if β=1.0 and either k=0 or α=0.0 then f06wcf returns immediately. If β=0.0 and either k=0 or α=0.0 then C is set to the zero matrix.

4 References

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. Software 37, 2

5 Arguments

1: transr Character(1) Input
On entry: specifies whether the RFP representation of C is normal or transposed.
transr='N'
The matrix C is stored in normal RFP format.
transr='T'
The matrix C is stored in transposed RFP format.
Constraint: transr='N' or 'T'.
2: uplo Character(1) Input
On entry: specifies whether the upper or lower triangular part of C is stored in RFP format.
uplo='U'
The upper triangular part of C is stored in RFP format.
uplo='L'
The lower triangular part of C is stored in RFP format.
Constraint: uplo='U' or 'L'.
3: trans Character(1) Input
On entry: specifies the operation to be performed.
trans='N'
CαAAT+βC.
trans='T'
CαATA+βC.
Constraint: trans='N' or 'T'.
4: n Integer Input
On entry: n, the order of the matrix C.
Constraint: n0.
5: k Integer Input
On entry: k, the number of columns of A if trans='N', or the number of rows of A if trans='T'.
Constraint: k0.
6: alpha Real (Kind=nag_wp) Input
On entry: the scalar α.
7: alda* Real (Kind=nag_wp) array Input
Note: the second dimension of the array a must be at least max1,k if trans='N' and at least max1,n if trans='T'.
On entry: the matrix A; A is n by k if trans='N', or k by n if trans='T'. If alpha=0.0, a is not referenced.
8: lda Integer Input
On entry: the first dimension of the array a as declared in the (sub)program from which f06wcf is called.
Constraints:
  • if trans='N', lda max1,n ;
  • if trans='T', lda max1,k .
9: beta Real (Kind=nag_wp) Input
On entry: the scalar β.
10: cn×n+1/2 Real (Kind=nag_wp) array Input/Output
On entry: the upper or lower triangular part (as specified by uplo) of the n by n symmetric matrix C, stored in RFP format (as specified by transr). The storage format is described in detail in Section 3.3.3 in the F07 Chapter Introduction.
On exit: the updated matrix C, that is its upper or lower triangular part stored in RFP format.

6 Error Indicators and Warnings

None.

7 Accuracy

Not applicable.

8 Parallelism and Performance

f06wcf 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 routine. Please also consult the Users' Note for your implementation for any additional implementation-specific information.

9 Further Comments

None.

10 Example

This example reads in the lower triangular part of a symmetric matrix C which it converts to RFP format. It also reads in α, β and a 6 by 4 matrix A and then performs the symmetric rank-4 update CαAAT+βC.

10.1 Program Text

Program Text (f06wcfe.f90)

10.2 Program Data

Program Data (f06wcfe.d)

10.3 Program Results

Program Results (f06wcfe.r)