langt#

Functions

f32 slangt(
    const char*          norm,
    const INT            n,
    const f32*  restrict DL,
    const f32*  restrict D,
    const f32*  restrict DU
);
f32 slangt(const char *norm, const INT n, const f32 *restrict DL, const f32 *restrict D, const f32 *restrict DU)#

SLANGT 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 tridiagonal matrix A.

Parameters

in
norm

Specifies the value to be returned: = ‘M’ or ‘m’: max(abs(A(i,j))) = “1”, ‘O’ or ‘o’: norm1(A) (maximum column sum) = ‘I’ or ‘i’: normI(A) (maximum row sum) = “F”, “f”, ‘E’ or ‘e’: normF(A) (Frobenius norm)

in
n

The order of the matrix A. n >= 0. When n = 0, SLANGT is set to zero.

in
DL

The (n-1) sub-diagonal elements of A. Array of dimension (n-1).

in
D

The diagonal elements of A. Array of dimension (n).

in
DU

The (n-1) super-diagonal elements of A. Array of dimension (n-1).

Functions

f64 dlangt(
    const char*          norm,
    const INT            n,
    const f64*  restrict DL,
    const f64*  restrict D,
    const f64*  restrict DU
);
f64 dlangt(const char *norm, const INT n, const f64 *restrict DL, const f64 *restrict D, const f64 *restrict DU)#

DLANGT 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 tridiagonal matrix A.

Parameters

in
norm

Specifies the value to be returned: = ‘M’ or ‘m’: max(abs(A(i,j))) = “1”, ‘O’ or ‘o’: norm1(A) (maximum column sum) = ‘I’ or ‘i’: normI(A) (maximum row sum) = “F”, “f”, ‘E’ or ‘e’: normF(A) (Frobenius norm)

in
n

The order of the matrix A. n >= 0. When n = 0, DLANGT is set to zero.

in
DL

The (n-1) sub-diagonal elements of A. Array of dimension (n-1).

in
D

The diagonal elements of A. Array of dimension (n).

in
DU

The (n-1) super-diagonal elements of A. Array of dimension (n-1).

Functions

f32 clangt(
    const char*          norm,
    const INT            n,
    const c64*  restrict DL,
    const c64*  restrict D,
    const c64*  restrict DU
);
f32 clangt(const char *norm, const INT n, const c64 *restrict DL, const c64 *restrict D, const c64 *restrict DU)#

CLANGT returns the value of the one norm, or the Frobenius norm, or the infinity norm, or the element of largest absolute value of a complex tridiagonal matrix A.

Parameters

in
norm

Specifies the value to be returned: = ‘M’ or ‘m’: max(abs(A(i,j))) = “1”, ‘O’ or ‘o’: norm1(A) (maximum column sum) = ‘I’ or ‘i’: normI(A) (maximum row sum) = “F”, “f”, ‘E’ or ‘e’: normF(A) (Frobenius norm)

in
n

The order of the matrix A. n >= 0. When n = 0, CLANGT is set to zero.

in
DL

The (n-1) sub-diagonal elements of A. Array of dimension (n-1).

in
D

The diagonal elements of A. Array of dimension (n).

in
DU

The (n-1) super-diagonal elements of A. Array of dimension (n-1).

Functions

f64 zlangt(
    const char*          norm,
    const INT            n,
    const c128* restrict DL,
    const c128* restrict D,
    const c128* restrict DU
);
f64 zlangt(const char *norm, const INT n, const c128 *restrict DL, const c128 *restrict D, const c128 *restrict DU)#

ZLANGT returns the value of the one norm, or the Frobenius norm, or the infinity norm, or the element of largest absolute value of a complex tridiagonal matrix A.

Parameters

in
norm

Specifies the value to be returned: = ‘M’ or ‘m’: max(abs(A(i,j))) = “1”, ‘O’ or ‘o’: norm1(A) (maximum column sum) = ‘I’ or ‘i’: normI(A) (maximum row sum) = “F”, “f”, ‘E’ or ‘e’: normF(A) (Frobenius norm)

in
n

The order of the matrix A. n >= 0. When n = 0, ZLANGT is set to zero.

in
DL

The (n-1) sub-diagonal elements of A. Array of dimension (n-1).

in
D

The diagonal elements of A. Array of dimension (n).

in
DU

The (n-1) super-diagonal elements of A. Array of dimension (n-1).