slansf (l) - Linux Manuals
slansf: returns the value of the one norm, or the Frobenius norm, or the infinity norm, or the element of largest absolute value of a real symmetric matrix A in RFP format
NAME
SLANSF - returns the value of the one norm, or the Frobenius norm, or the infinity norm, or the element of largest absolute value of a real symmetric matrix A in RFP formatSYNOPSIS
- REAL FUNCTION
- SLANSF( NORM, TRANSR, UPLO, N, A, WORK )
- CHARACTER NORM, TRANSR, UPLO
- INTEGER N
- REAL A( 0: * ), WORK( 0: * )
PURPOSE
SLANSF returns the value of the one norm, or the Frobenius norm, or the infinity norm, or the element of largest absolute value of a real symmetric matrix A in RFP format.DESCRIPTION
SLANSF returns the valueSLANSF
ARGUMENTS
- NORM (input) CHARACTER
- Specifies the value to be returned in SLANSF as described above.
- TRANSR (input) CHARACTER
-
Specifies whether the RFP format of A is normal or
transposed format.
= aqNaq: RFP format is Normal;
= aqTaq: RFP format is Transpose. - UPLO (input) CHARACTER
-
On entry, UPLO specifies whether the RFP matrix A came from
an upper or lower triangular matrix as follows:
= aqUaq: RFP A came from an upper triangular matrix;
= aqLaq: RFP A came from a lower triangular matrix. - N (input) INTEGER
- The order of the matrix A. N >= 0. When N = 0, SLANSF is set to zero.
- A (input) REAL array, dimension ( N*(N+1)/2 );
- On entry, the upper (if UPLO = aqUaq) or lower (if UPLO = aqLaq) part of the symmetric matrix A stored in RFP format. See the "Notes" below for more details. Unchanged on exit.
- WORK (workspace) REAL array, dimension (MAX(1,LWORK)),
- where LWORK >= N when NORM = aqIaq or aq1aq or aqOaq; otherwise, WORK is not referenced.
FURTHER DETAILS
We first consider Rectangular Full Packed (RFP) Format when N is even. We give an example where N = 6.Let TRANSR = aqNaq. RFP holds AP as follows:
For UPLO = aqUaq the upper trapezoid A(0:5,0:2) consists of the last three columns of AP upper. The lower triangle A(4:6,0:2) consists of the transpose of the first three columns of AP upper.
For UPLO = aqLaq the lower trapezoid A(1:6,0:2) consists of the first three columns of AP lower. The upper triangle A(0:2,0:2) consists of the transpose of the last three columns of AP lower.
This covers the case N even and TRANSR = aqNaq.
03 04 05
13 14 15
23 24 25
33 34 35
00 44 45