F06UJF (PDF version)
F06 Chapter Contents
F06 Chapter Introduction
NAG Library Manual

NAG Library Routine Document

F06UJF

Note:  before using this routine, please read the Users' Note for your implementation to check the interpretation of bold italicised terms and other implementation-dependent details.

 Contents

    1  Purpose
    7  Accuracy
    10  Example

1  Purpose

F06UJF returns, via the function name, the value of the 1-norm, the -norm, the Frobenius norm, or the maximum absolute value of the elements of a complex m by n trapezoidal matrix (triangular if m=n).

2  Specification

FUNCTION F06UJF ( NORM, UPLO, DIAG, M, N, A, LDA, WORK)
REAL (KIND=nag_wp) F06UJF
INTEGER  M, N, LDA
REAL (KIND=nag_wp)  WORK(*)
COMPLEX (KIND=nag_wp)  A(LDA,*)
CHARACTER(1)  NORM, UPLO, DIAG

3  Description

None.

4  References

None.

5  Parameters

1:     NORM – CHARACTER(1)Input
On entry: specifies the value to be returned.
NORM='1' or 'O'
The 1-norm.
NORM='I'
The -norm.
NORM='F' or 'E'
The Frobenius (or Euclidean) norm.
NORM='M'
The value maxi,jaij (not a norm).
Constraint: NORM='1', 'O', 'I', 'F', 'E' or 'M'.
2:     UPLO – CHARACTER(1)Input
On entry: specifies whether A is upper or lower trapezoidal.
UPLO='U'
A is upper trapezoidal.
UPLO='L'
A is lower trapezoidal.
Constraint: UPLO='U' or 'L'.
3:     DIAG – CHARACTER(1)Input
On entry: specifies whether A has nonunit or unit diagonal elements.
DIAG='N'
The diagonal elements are stored explicitly.
DIAG='U'
The diagonal elements are assumed to be 1, and are not referenced.
Constraint: DIAG='N' or 'U'.
4:     M – INTEGERInput
On entry: m, the number of rows of the matrix A.
When M=0, F06UJF is set to zero.
Constraint: M0.
5:     N – INTEGERInput
On entry: n, the number of columns of the matrix A.
When N=0, F06UJF is set to zero.
Constraint: N0.
6:     ALDA* – COMPLEX (KIND=nag_wp) arrayInput
Note: the second dimension of the array A must be at least N.
On entry: the m by n trapezoidal matrix A.
  • If UPLO='U', A is upper trapezoidal and the elements of the array below the diagonal are not referenced.
  • If UPLO='L', A is lower trapezoidal and the elements of the array above the diagonal are not referenced.
  • If DIAG='U', the diagonal elements of A are assumed to be 1, and are not referenced.
7:     LDA – INTEGERInput
On entry: the first dimension of the array A as declared in the (sub)program from which F06UJF is called.
Constraint: LDA max1,M .
8:     WORK* – REAL (KIND=nag_wp) arrayWorkspace
Note: the dimension of the array WORK must be at least max1,M  if NORM='I', and at least 1 otherwise.

6  Error Indicators and Warnings

None.

7  Accuracy

Not applicable.

8  Parallelism and Performance

Not applicable.

9  Further Comments

None.

10  Example

None.

F06UJF (PDF version)
F06 Chapter Contents
F06 Chapter Introduction
NAG Library Manual

© The Numerical Algorithms Group Ltd, Oxford, UK. 2015