Developer Reference for Intel® oneAPI Math Kernel Library for Fortran

ID 766686
Date 6/24/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

?lanhf

Returns the value of the 1-norm, or the Frobenius norm, or the infinity norm, or the element of largest absolute value of a Hermitian matrix in RFP format.

Syntax

val = clanhf(norm, transr, uplo, n, a, work)

val = zlanhf(norm, transr, uplo, n, a, work)

Include Files

  • mkl.fi

Description

The function ?lanhf returns the value of the 1-norm, or the Frobenius norm, or the infinity norm, or the element of largest absolute value of an n-by-n complex Hermitian matrix A in the rectangular full packed (RFP) format.

Input Parameters

norm

CHARACTER*1.

Specifies the value to be returned by the routine:

= 'M' or 'm': val = max(abs(Aij)), largest absolute value of the matrix A.

= '1' or 'O' or 'o': val = norm1(A), 1-norm of the matrix A (maximum column sum),

= 'I' or 'i': val = normI(A), infinity norm of the matrix A (maximum row sum),

= 'F', 'f', 'E' or 'e': val = normF(A), Frobenius norm of the matrix A (square root of sum of squares).

transr

CHARACTER*1.

Specifies whether the RFP format of matrix A is normal or conjugate-transposed format.

If transr = 'N': RFP format is normal;

if transr = 'C': RFP format is conjugate-transposed.

uplo

CHARACTER*1.

Specifies whether the RFP matrix A came from upper or lower triangular matrix.

If uplo = 'U': RFP matrix A came from an upper triangular matrix;

if uplo = 'L': RFP matrix A came from a lower triangular matrix.

n

INTEGER. The order of the matrix A. n 0.

When n = 0, ?lanhf is set to zero.

a

COMPLEX for clanhf

DOUBLE COMPLEX for zlanhf

Array, DIMENSION (n*(n+1)/2).

The upper (if uplo = 'U') or lower (if uplo = 'L') part of the Hermitian matrix A stored in RFP format.

work

COMPLEX for clanhf.

DOUBLE COMPLEX for zlanhf.

Workspace array, DIMENSION(max(1,lwork)), where

lworkn when norm = 'I' or '1' or 'O'; otherwise, work is not referenced.

Output Parameters

val

COMPLEX for clanhf

DOUBLE COMPLEX for zlanhf

Value returned by the function.